File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change 108
108
import com .oracle .truffle .api .interop .TruffleObject ;
109
109
import com .oracle .truffle .api .interop .UnsupportedMessageException ;
110
110
import com .oracle .truffle .api .interop .UnsupportedTypeException ;
111
- import com .oracle .truffle .api .library .ExportLibrary ;
112
- import com .oracle .truffle .api .library .ExportMessage ;
113
111
import com .oracle .truffle .api .nodes .ControlFlowException ;
114
112
import com .oracle .truffle .api .nodes .Node ;
115
113
import com .oracle .truffle .api .object .DynamicObjectLibrary ;
@@ -625,37 +623,6 @@ public GraalHPyNativeContext getBackend() {
625
623
return backend ;
626
624
}
627
625
628
- /**
629
- * Encodes a long value such that it responds to {@link InteropLibrary#isPointer(Object)}
630
- * messages.
631
- */
632
- @ ExportLibrary (InteropLibrary .class )
633
- public static final class HPyContextNativePointer implements TruffleObject {
634
-
635
- private final long pointer ;
636
-
637
- public HPyContextNativePointer (long pointer ) {
638
- this .pointer = pointer ;
639
- }
640
-
641
- @ ExportMessage
642
- @ SuppressWarnings ("static-method" )
643
- boolean isPointer () {
644
- return true ;
645
- }
646
-
647
- @ ExportMessage
648
- long asPointer () {
649
- return pointer ;
650
- }
651
-
652
- @ ExportMessage
653
- @ SuppressWarnings ("static-method" )
654
- void toNative () {
655
- // nothing to do
656
- }
657
- }
658
-
659
626
@ SuppressWarnings ("static-method" )
660
627
public GraalHPyHandle createHandle (Object delegate ) {
661
628
return GraalHPyHandle .create (delegate );
You can’t perform that action at this time.
0 commit comments