Skip to content

Commit

Permalink
Remove some unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed May 3, 2015
1 parent 8958584 commit 595923a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public static abstract class PrefixComparator {
public abstract int compare(long prefix1, long prefix2);
}

private final TaskMemoryManager memoryManager;
private final Sorter<RecordPointerAndKeyPrefix, long[]> sorter;
private final Comparator<RecordPointerAndKeyPrefix> sortComparator;

Expand Down Expand Up @@ -112,7 +111,6 @@ public UnsafeSorter(
int initialSize) {
assert (initialSize > 0);
this.sortBuffer = new long[initialSize * 2];
this.memoryManager = memoryManager;
this.sorter =
new Sorter<RecordPointerAndKeyPrefix, long[]>(UnsafeSortDataFormat.INSTANCE);
this.sortComparator = new Comparator<RecordPointerAndKeyPrefix>() {
Expand Down Expand Up @@ -143,8 +141,6 @@ public void insertRecord(long objectAddress, long keyPrefix) {
if (sortBufferInsertPosition + 2 == sortBuffer.length) {
expandSortBuffer(sortBuffer.length * 2);
}
final Object baseObject = memoryManager.getPage(objectAddress);
final long baseOffset = memoryManager.getOffsetInPage(objectAddress);
sortBuffer[sortBufferInsertPosition] = objectAddress;
sortBufferInsertPosition++;
sortBuffer[sortBufferInsertPosition] = keyPrefix;
Expand Down

0 comments on commit 595923a

Please sign in to comment.