Skip to content

Commit 6f50dd3

Browse files
committed
only user methods have __code__
1 parent 70d0bfe commit 6f50dd3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/method/AbstractMethodBuiltins.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
package com.oracle.graal.python.builtins.objects.method;
2828

29-
import static com.oracle.graal.python.nodes.SpecialAttributeNames.__CODE__;
3029
import static com.oracle.graal.python.nodes.SpecialAttributeNames.__FUNC__;
3130
import static com.oracle.graal.python.nodes.SpecialAttributeNames.__MODULE__;
3231
import static com.oracle.graal.python.nodes.SpecialAttributeNames.__NAME__;
@@ -129,16 +128,6 @@ protected Object doIt(PBuiltinMethod self) {
129128
}
130129
}
131130

132-
@Builtin(name = __CODE__, fixedNumOfPositionalArgs = 1, isGetter = true)
133-
@GenerateNodeFactory
134-
public abstract static class CodeNode extends PythonBuiltinNode {
135-
@Specialization
136-
protected Object doIt(PMethod self,
137-
@Cached("create(__GETATTRIBUTE__)") LookupAndCallBinaryNode getCode) {
138-
return getCode.executeObject(self.getFunction(), __CODE__);
139-
}
140-
}
141-
142131
@Builtin(name = __EQ__, fixedNumOfPositionalArgs = 2)
143132
@GenerateNodeFactory
144133
abstract static class EqNode extends PythonBinaryBuiltinNode {

0 commit comments

Comments
 (0)