23
23
24
24
@ Internal
25
25
public class InternalAccess {
26
- public static <T > Cursor <T > getReader (Box <T > box ) {
27
- return box .getReader ();
28
- }
29
26
30
27
public static long getHandle (BoxStore boxStore ) {
31
28
return boxStore .internalHandle ();
@@ -40,10 +37,6 @@ public static Transaction getActiveTx(BoxStore boxStore) {
40
37
return tx ;
41
38
}
42
39
43
- public static long getHandle (Cursor reader ) {
44
- return reader .internalHandle ();
45
- }
46
-
47
40
public static long getHandle (Transaction tx ) {
48
41
return tx .internalHandle ();
49
42
}
@@ -52,10 +45,6 @@ public static void setSyncClient(BoxStore boxStore, @Nullable SyncClient syncCli
52
45
boxStore .setSyncClient (syncClient );
53
46
}
54
47
55
- public static <T > void releaseReader (Box <T > box , Cursor <T > reader ) {
56
- box .releaseReader (reader );
57
- }
58
-
59
48
public static <T > Cursor <T > getWriter (Box <T > box ) {
60
49
return box .getWriter ();
61
50
}
@@ -68,10 +57,6 @@ public static <T> long getActiveTxCursorHandle(Box<T> box) {
68
57
return box .getActiveTxCursor ().internalHandle ();
69
58
}
70
59
71
- public static <T > void releaseWriter (Box <T > box , Cursor <T > writer ) {
72
- box .releaseWriter (writer );
73
- }
74
-
75
60
public static <T > void commitWriter (Box <T > box , Cursor <T > writer ) {
76
61
box .commitWriter (writer );
77
62
}
0 commit comments