Skip to content

Commit 0087a52

Browse files
committed
Remove unused weak_handle field
1 parent 49e01de commit 0087a52

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/Java.Interop/Java.Interop/JavaException.cs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ unsafe public class JavaException : Exception, IJavaPeerable
2222
JniObjectReferenceType handle_type;
2323
#pragma warning disable 0169
2424
// Used by JavaInteropGCBridge
25-
IntPtr weak_handle;
2625
int refs_added;
2726
#pragma warning restore 0169
2827
#endif // FEATURE_JNIOBJECTREFERENCE_INTPTRS

src/Java.Interop/Java.Interop/JavaObject.cs

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ unsafe public class JavaObject : IJavaPeerable
2424
JniObjectReferenceType handle_type;
2525
#pragma warning disable 0169
2626
// Used by JavaInteropGCBridge
27-
IntPtr weak_handle;
2827
int refs_added;
2928
#pragma warning restore 0169
3029
#endif // FEATURE_JNIOBJECTREFERENCE_INTPTRS

src/java-interop/java-interop-gc-bridge-mono.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ typedef struct MonoJavaGCBridgeInfo {
3333
MonoClassField *handle;
3434
MonoClassField *handle_type;
3535
MonoClassField *refs_added;
36-
MonoClassField *weak_handle;
3736
} MonoJavaGCBridgeInfo;
3837

3938
#define NUM_GC_BRIDGE_TYPES (4)
@@ -354,10 +353,9 @@ java_interop_gc_bridge_register_bridgeable_type (
354353
info->handle = mono_class_get_field_from_name (info->klass, const_cast<char*> ("handle"));
355354
info->handle_type = mono_class_get_field_from_name (info->klass, const_cast<char*> ("handle_type"));
356355
info->refs_added = mono_class_get_field_from_name (info->klass, const_cast<char*> ("refs_added"));
357-
info->weak_handle = mono_class_get_field_from_name (info->klass, const_cast<char*> ("weak_handle"));
358356

359357
if (info->klass == NULL || info->handle == NULL || info->handle_type == NULL ||
360-
info->refs_added == NULL || info->weak_handle == NULL)
358+
info->refs_added == NULL)
361359
return -1;
362360
bridge->num_bridge_types++;
363361
return 0;

0 commit comments

Comments
 (0)