Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Unified Diff: base/android/jni_array.cc

Issue 1424363003: Remove two unncessary lines from jni_array.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_array.cc
diff --git a/base/android/jni_array.cc b/base/android/jni_array.cc
index 0b7ce5d1448e35e8060f94eb441926b4d223a06e..e419b341f84d693e8de5e66b0b6ce2b0cb6363ad 100644
--- a/base/android/jni_array.cc
+++ b/base/android/jni_array.cc
@@ -245,9 +245,7 @@ void JavaArrayOfIntArrayToIntVector(
for (size_t i = 0; i < len; ++i) {
ScopedJavaLocalRef<jintArray> int_array(
env, static_cast<jintArray>(env->GetObjectArrayElement(array, i)));
- jint* ints = env->GetIntArrayElements(int_array.obj(), nullptr);
JavaIntArrayToIntVector(env, int_array.obj(), &((*out)[i]));
- env->ReleaseIntArrayElements(int_array.obj(), ints, JNI_ABORT);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698