Skip to content

Commit fed4ab6

Browse files
author
Davies Liu
committed
remove dead code
1 parent 374ec3b commit fed4ab6

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sql/core/src/main/java/org/apache/spark/sql/execution/UnsafeFixedWidthAggregationMap.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919

2020
import java.io.IOException;
2121

22-
import com.google.common.annotations.VisibleForTesting;
23-
2422
import org.apache.spark.SparkEnv;
23+
import org.apache.spark.memory.TaskMemoryManager;
2524
import org.apache.spark.sql.catalyst.InternalRow;
2625
import org.apache.spark.sql.catalyst.expressions.UnsafeProjection;
2726
import org.apache.spark.sql.catalyst.expressions.UnsafeRow;
@@ -31,7 +30,6 @@
3130
import org.apache.spark.unsafe.Platform;
3231
import org.apache.spark.unsafe.map.BytesToBytesMap;
3332
import org.apache.spark.unsafe.memory.MemoryLocation;
34-
import org.apache.spark.memory.TaskMemoryManager;
3533

3634
/**
3735
* Unsafe-based HashMap for performing aggregations where the aggregated values are fixed-width.
@@ -218,11 +216,6 @@ public long getPeakMemoryUsedBytes() {
218216
return map.getPeakMemoryUsedBytes();
219217
}
220218

221-
@VisibleForTesting
222-
public int getNumDataPages() {
223-
return map.getNumDataPages();
224-
}
225-
226219
/**
227220
* Free the memory associated with this map. This is idempotent and can be called multiple times.
228221
*/

0 commit comments

Comments
 (0)