Skip to content

Commit bc361e1

Browse files
committed
remove unneeded method in __LE__ frozen set builtin node
1 parent eacdaef commit bc361e1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/set/FrozenSetBuiltins.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,22 +98,14 @@ Object doGeneric(Object self, Object other) {
9898
abstract static class LeNode extends PythonBinaryBuiltinNode {
9999
@Child private HashingStorageNodes.ContainsKeyNode containsKeyNode = HashingStorageNodes.ContainsKeyNode.create();
100100

101-
private HashingStorageNodes.ContainsKeyNode getContainsKeyNode() {
102-
if (containsKeyNode == null) {
103-
CompilerDirectives.transferToInterpreterAndInvalidate();
104-
containsKeyNode = insert(HashingStorageNodes.ContainsKeyNode.create());
105-
}
106-
return containsKeyNode;
107-
}
108-
109101
@Specialization
110102
Object run(PBaseSet self, PBaseSet other) {
111103
if (self.size() > other.size()) {
112104
return false;
113105
}
114106

115107
for (Object value : self.values()) {
116-
if (!getContainsKeyNode().execute(other.getDictStorage(), value)) {
108+
if (!containsKeyNode.execute(other.getDictStorage(), value)) {
117109
return false;
118110
}
119111
}

0 commit comments

Comments
 (0)