Skip to content

Commit 2c456a6

Browse files
committed
Renaming method more properly and removing unnecessary profile.
1 parent 06cbcb8 commit 2c456a6

File tree

1 file changed

+1
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/list

1 file changed

+1
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/list/ListBuiltins.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ public PNone removeLong(PList list, long value) {
559559
}
560560

561561
@Specialization(guards = "isDoubleStorage(list)")
562-
public PNone removeLong(PList list, double value) {
562+
public PNone removeDouble(PList list, double value) {
563563
DoubleSequenceStorage store = (DoubleSequenceStorage)list.getSequenceStorage();
564564
for(int index = 0; index < store.length(); index++) {
565565
if (value == store.getDoubleItemNormalized(index)) {
@@ -572,7 +572,6 @@ public PNone removeLong(PList list, double value) {
572572

573573
@Specialization(guards = "isNotSpecialCase(list, value)")
574574
public PNone remove(PList list, Object value,
575-
@Cached("createBinaryProfile()") ConditionProfile errorProfile,
576575
@Cached("create(__EQ__, __EQ__, __EQ__)") BinaryComparisonNode eqNode) {
577576
int len = list.len();
578577
for (int i = 0; i < len; i++) {

0 commit comments

Comments
 (0)