[Android] LibVLC: remove unused jni code
Thomas Guillem
git at videolan.org
Fri Dec 17 10:26:01 UTC 2021
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Dec 15 13:54:43 2021 +0100| [3e3af0f04048ee76d8c218cd705f29cc1da70963] | committer: Nicolas Pomepuy
LibVLC: remove unused jni code
Should have been removed with 5077545ecb09789599b61049af5c0a412dde95a2
> https://code.videolan.org/videolan/vlc-android/commit/3e3af0f04048ee76d8c218cd705f29cc1da70963
---
libvlc/src/org/videolan/libvlc/VLCObject.java | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/libvlc/src/org/videolan/libvlc/VLCObject.java b/libvlc/src/org/videolan/libvlc/VLCObject.java
index f1eba092a..5ad46c409 100644
--- a/libvlc/src/org/videolan/libvlc/VLCObject.java
+++ b/libvlc/src/org/videolan/libvlc/VLCObject.java
@@ -29,8 +29,6 @@ import org.videolan.libvlc.interfaces.AbstractVLCEvent;
import org.videolan.libvlc.interfaces.ILibVLC;
import org.videolan.libvlc.interfaces.IVLCObject;
-import java.lang.ref.WeakReference;
-
@SuppressWarnings("JniMissingFunction")
abstract class VLCObject<T extends AbstractVLCEvent> implements IVLCObject<T> {
private AbstractVLCEvent.Listener<T> mEventListener = null;
@@ -179,18 +177,5 @@ abstract class VLCObject<T extends AbstractVLCEvent> implements IVLCObject<T> {
}
private native void nativeDetachEvents();
- /* used only before API 7: substitute for NewWeakGlobalRef */
- @SuppressWarnings("unused") /* Used from JNI */
- private Object getWeakReference() {
- return new WeakReference<IVLCObject>(this);
- }
- @SuppressWarnings("unchecked,unused") /* Used from JNI */
- private static void dispatchEventFromWeakNative(Object weak, int eventType, long arg1, long arg2,
- float argf1, @Nullable String args1) {
- VLCObject obj = ((WeakReference<VLCObject>)weak).get();
- if (obj != null)
- obj.dispatchEventFromNative(eventType, arg1, arg2, argf1, args1);
- }
-
public native long getInstance();
}
More information about the Android
mailing list