Skip to content

Commit c54141b

Browse files
committed
Remove all LazyPythonClass refs
1 parent d3858ea commit c54141b

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/PythonBuiltinClassType.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ public boolean isAcceptableBase() {
240240
return basetype;
241241
}
242242

243-
@Override
244243
public String getName() {
245244
return name;
246245
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/PythonNativeClass.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -53,7 +53,6 @@ public interface PythonNativeClass extends PythonAbstractClass {
5353

5454
TruffleObject getPtr();
5555

56-
@Override
5756
default String getName() {
5857
return String.format("PythonNativeClass(%s)", getPtr());
5958
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/LazyPythonClass.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@
4545

4646
public interface LazyPythonClass extends TruffleObject {
4747

48-
/**
49-
* Returns the name of the class for debugging purposes. This method must assume that no context
50-
* is available.
51-
*/
52-
String getName();
53-
54-
static boolean isInstance(Object object) {
55-
return object instanceof PythonBuiltinClassType || PythonAbstractClass.isInstance(object);
56-
}
57-
5848
static LazyPythonClass cast(Object object) {
5949
if (object instanceof PythonBuiltinClassType) {
6050
return (PythonBuiltinClassType) object;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/PythonManagedClass.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ public MroSequenceStorage getMethodResolutionOrder() {
135135
return methodResolutionOrder;
136136
}
137137

138-
@Override
139138
public String getName() {
140139
return className;
141140
}

0 commit comments

Comments
 (0)