Skip to content

Commit 1e96001

Browse files
committed
Remove unused built-in function PyTruffle_GetTpFlags.
1 parent 3af263c commit 1e96001

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PythonCextBuiltins.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@
201201
import com.oracle.graal.python.builtins.objects.type.PythonManagedClass;
202202
import com.oracle.graal.python.builtins.objects.type.TypeNodes;
203203
import com.oracle.graal.python.builtins.objects.type.TypeNodes.GetMroStorageNode;
204-
import com.oracle.graal.python.builtins.objects.type.TypeNodes.GetTypeFlagsNode;
205204
import com.oracle.graal.python.nodes.ErrorMessages;
206205
import com.oracle.graal.python.nodes.PGuards;
207206
import com.oracle.graal.python.nodes.PNodeWithContext;
@@ -1501,26 +1500,6 @@ int tbHere(PFrame frame,
15011500
}
15021501
}
15031502

1504-
@Builtin(name = "PyTruffle_GetTpFlags", minNumOfPositionalArgs = 1)
1505-
@GenerateNodeFactory
1506-
abstract static class PyTruffle_GetTpFlags extends NativeBuiltin {
1507-
1508-
@Specialization(limit = "1")
1509-
static long doPythonObject(PythonNativeWrapper nativeWrapper,
1510-
@Shared("getTypeFlagsNode") @Cached GetTypeFlagsNode getTypeFlagsNode,
1511-
@Shared("objectLib") @CachedLibrary(limit = "3") PythonObjectLibrary objectLib,
1512-
@CachedLibrary("nativeWrapper") PythonNativeWrapperLibrary lib) {
1513-
return getTypeFlagsNode.execute(objectLib.getLazyPythonClass(lib.getDelegate(nativeWrapper)));
1514-
}
1515-
1516-
@Specialization
1517-
static long doPythonObject(PythonAbstractObject object,
1518-
@Shared("getTypeFlagsNode") @Cached GetTypeFlagsNode getTypeFlagsNode,
1519-
@Shared("objectLib") @CachedLibrary(limit = "3") PythonObjectLibrary objectLib) {
1520-
return getTypeFlagsNode.execute(objectLib.getLazyPythonClass(object));
1521-
}
1522-
}
1523-
15241503
@Builtin(name = "PyTruffle_Set_SulongType", minNumOfPositionalArgs = 2)
15251504
@GenerateNodeFactory
15261505
abstract static class PyTruffle_Set_SulongType extends NativeBuiltin {

0 commit comments

Comments
 (0)