Skip to content

Commit 1a94ae6

Browse files
committed
Remove unnecessary generic specialization
1 parent 1b47d46 commit 1a94ae6

File tree

1 file changed

+0
-9
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,15 +1989,6 @@ static Object doDynamicObject(DynamicObject object,
19891989
@CachedLibrary("object") DynamicObjectLibrary lib) {
19901990
return lib.getOrDefault(object, OBJECT_HPY_NATIVE_SPACE, PNone.NO_VALUE);
19911991
}
1992-
1993-
@Specialization(replaces = "doDynamicObject")
1994-
static Object doOther(Object object,
1995-
@CachedLibrary(limit = "getVariableArgumentInlineCacheLimit()") DynamicObjectLibrary lib) {
1996-
if (object instanceof DynamicObject) {
1997-
return lib.getOrDefault((DynamicObject) object, OBJECT_HPY_NATIVE_SPACE, PNone.NO_VALUE);
1998-
}
1999-
throw CompilerDirectives.shouldNotReachHere();
2000-
}
20011992
}
20021993

20031994
}

0 commit comments

Comments
 (0)