Index: talk/app/webrtc/java/jni/jni_helpers.cc |
diff --git a/talk/app/webrtc/java/jni/jni_helpers.cc b/talk/app/webrtc/java/jni/jni_helpers.cc |
index a2cbd61971ecdcb68d4f5913a92ae4ea56223136..448d1ad91b0fe3a25362b78a851c839df5acc09e 100644 |
--- a/talk/app/webrtc/java/jni/jni_helpers.cc |
+++ b/talk/app/webrtc/java/jni/jni_helpers.cc |
@@ -273,17 +273,6 @@ void DeleteGlobalRef(JNIEnv* jni, jobject o) { |
CHECK_EXCEPTION(jni) << "error during DeleteGlobalRef"; |
} |
-WeakRef::WeakRef(JNIEnv* jni, jweak ref) |
- : jni_(jni), obj_(jni_->NewLocalRef(ref)) { |
- CHECK_EXCEPTION(jni) << "error during NewLocalRef"; |
-} |
-WeakRef::~WeakRef() { |
- if (obj_) { |
- jni_->DeleteLocalRef(obj_); |
- CHECK_EXCEPTION(jni_) << "error during DeleteLocalRef"; |
- } |
-} |
- |
// Scope Java local references to the lifetime of this object. Use in all C++ |
// callbacks (i.e. entry points that don't originate in a Java callstack |
// through a "native" method call). |