From 5503bf1b381ef94a220acc3debd2506669253757 Mon Sep 17 00:00:00 2001 From: jon-wei Date: Wed, 30 Mar 2016 17:54:15 -0700 Subject: [PATCH] Remove unnecessary type check in TimeAndDimsComp --- .../segment/incremental/IncrementalIndex.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java b/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java index 5b45dff302c..3ce3bc6bd02 100644 --- a/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java +++ b/processing/src/main/java/io/druid/segment/incremental/IncrementalIndex.java @@ -1240,26 +1240,6 @@ public abstract class IncrementalIndex implements Iterable, int index = 0; while (retVal == 0 && index < numComparisons) { - ValueType lhsType = lhs.types[index]; - ValueType rhsType = rhs.types[index]; - - if (lhsType == null) { - if (rhsType == null) { - ++index; - continue; - } - return -1; - } - - if (rhsType == null) { - return 1; - } - - retVal = lhsType.compareTo(rhsType); - if (retVal != 0) { - return retVal; - } - final int[] lhsIdxs = lhs.dims[index]; final int[] rhsIdxs = rhs.dims[index];