Skip to content

Commit c1c71ca

Browse files
committed
Remove unused allocator argument.
1 parent c61ecbe commit c1c71ca

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/main/java/org/truffleruby/cext/ValueWrapperManager.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public synchronized void addToBlockMap(HandleBlock block, RubyLanguage language)
108108
int blockIndex = block.getIndex();
109109
long blockBase = block.getBase();
110110
HandleBlockAllocator allocator = language.handleBlockAllocator;
111-
HandleBlockWeakReference[] map = growMapIfRequired(blockMap, allocator, blockIndex);
111+
HandleBlockWeakReference[] map = growMapIfRequired(blockMap, blockIndex);
112112
blockMap = map;
113113
map[blockIndex] = new HandleBlockWeakReference(block);
114114

@@ -124,10 +124,7 @@ public void addToSharedBlockMap(HandleBlock block, RubyLanguage language) {
124124
int blockIndex = block.getIndex();
125125
long blockBase = block.getBase();
126126
HandleBlockAllocator allocator = language.handleBlockAllocator;
127-
HandleBlockWeakReference[] map = growMapIfRequired(
128-
language.handleBlockSharedMap,
129-
allocator,
130-
blockIndex);
127+
HandleBlockWeakReference[] map = growMapIfRequired(language.handleBlockSharedMap, blockIndex);
131128
language.handleBlockSharedMap = map;
132129
map[blockIndex] = new HandleBlockWeakReference(block);
133130

@@ -138,8 +135,7 @@ public void addToSharedBlockMap(HandleBlock block, RubyLanguage language) {
138135
}
139136
}
140137

141-
private static HandleBlockWeakReference[] growMapIfRequired(HandleBlockWeakReference[] map,
142-
HandleBlockAllocator allocator, int blockIndex) {
138+
private static HandleBlockWeakReference[] growMapIfRequired(HandleBlockWeakReference[] map, int blockIndex) {
143139
if (blockIndex + 1 > map.length) {
144140
final HandleBlockWeakReference[] copy = new HandleBlockWeakReference[blockIndex + 1];
145141
System.arraycopy(map, 0, copy, 0, map.length);

0 commit comments

Comments
 (0)