Skip to content

Commit a2bd695

Browse files
committed
Remove unused SequenceStorage.copyItem
1 parent 5809dbe commit a2bd695

File tree

10 files changed

+0
-47
lines changed

10 files changed

+0
-47
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/BoolSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@ private void insertBoolItem(int idx, boolean value) {
136136
length++;
137137
}
138138

139-
@Override
140-
public void copyItem(int idxTo, int idxFrom) {
141-
values[idxTo] = values[idxFrom];
142-
}
143-
144139
@Override
145140
public SequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
146141
boolean[] newArray = new boolean[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/ByteSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ public void insertByteItem(int idx, byte value) {
158158
length++;
159159
}
160160

161-
@Override
162-
public void copyItem(int idxTo, int idxFrom) {
163-
values[idxTo] = values[idxFrom];
164-
}
165-
166161
@Override
167162
public ByteSequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
168163
byte[] newArray = new byte[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/DoubleSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ public void insertDoubleItem(int idx, double value) {
138138
length++;
139139
}
140140

141-
@Override
142-
public void copyItem(int idxTo, int idxFrom) {
143-
values[idxTo] = values[idxFrom];
144-
}
145-
146141
@Override
147142
public DoubleSequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
148143
double[] newArray = new double[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/EmptySequenceStorage.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@ public Object[] getCopyOfInternalArray() {
9292
return PythonUtils.EMPTY_OBJECT_ARRAY;
9393
}
9494

95-
@Override
96-
public void copyItem(int idxTo, int idxFrom) {
97-
}
98-
9995
@Override
10096
public SequenceStorage getSliceInBound(int start, int stop, int step, int len) {
10197
assert start == stop && stop == 0;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/IntSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ public void insertIntItem(int idx, int value) {
138138
incLength();
139139
}
140140

141-
@Override
142-
public void copyItem(int idxTo, int idxFrom) {
143-
values[idxTo] = values[idxFrom];
144-
}
145-
146141
@Override
147142
public IntSequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
148143
int[] newArray = new int[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/LongSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ public void insertLongItem(int idx, long value) {
148148
incLength();
149149
}
150150

151-
@Override
152-
public void copyItem(int idxTo, int idxFrom) {
153-
values[idxTo] = values[idxFrom];
154-
}
155-
156151
@Override
157152
public LongSequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
158153
long[] newArray = new long[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/MroSequenceStorage.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ public void insertItem(int idx, Object value) {
121121
throw CompilerDirectives.shouldNotReachHere();
122122
}
123123

124-
@Override
125-
@SuppressWarnings("unused")
126-
public void copyItem(int idxTo, int idxFrom) {
127-
throw CompilerDirectives.shouldNotReachHere();
128-
}
129-
130124
@Override
131125
public MroSequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
132126
PythonAbstractClass[] newArray = new PythonAbstractClass[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/NativeSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ public final Object getIndicativeValue() {
148148
return null;
149149
}
150150

151-
@Override
152-
public final void copyItem(int idxTo, int idxFrom) {
153-
throw CompilerDirectives.shouldNotReachHere();
154-
}
155-
156151
@Override
157152
public final Object getInternalArrayObject() {
158153
return ptr;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/ObjectSequenceStorage.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ public void insertItem(int idx, Object value) {
7979
incLength();
8080
}
8181

82-
@Override
83-
public void copyItem(int idxTo, int idxFrom) {
84-
values[idxTo] = values[idxFrom];
85-
}
86-
8782
@Override
8883
public ObjectSequenceStorage getSliceInBound(int start, int stop, int step, int sliceLength) {
8984
Object[] newArray = new Object[sliceLength];

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/sequence/storage/SequenceStorage.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,4 @@ public final int getCapacity() {
102102
public abstract Object getIndicativeValue();
103103

104104
public abstract void ensureCapacity(int newCapacity);
105-
106-
public abstract void copyItem(int idxTo, int idxFrom);
107105
}

0 commit comments

Comments
 (0)