summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MediaMetadataRetriever.cpp
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2011-01-21 12:28:35 -0800
committerCarl Shapiro <cshapiro@google.com>2011-01-21 16:10:08 -0800
commit8f995b5f6de6690ecf80d40cde70e2e6f6e3f232 (patch)
treef964c201cabcfc68ea27a8125b8303824687076e /media/jni/android_media_MediaMetadataRetriever.cpp
parent8dac54c5855cdb3334ea31ff1b5f04972515ff7f (diff)
downloadframeworks_base-8f995b5f6de6690ecf80d40cde70e2e6f6e3f232.zip
frameworks_base-8f995b5f6de6690ecf80d40cde70e2e6f6e3f232.tar.gz
frameworks_base-8f995b5f6de6690ecf80d40cde70e2e6f6e3f232.tar.bz2
Remove dead code referencing an obsolete interface.
Bug: 3378919 Change-Id: I780d98492ea7996187e3d97fcae7748f7ee68e91
Diffstat (limited to 'media/jni/android_media_MediaMetadataRetriever.cpp')
-rw-r--r--media/jni/android_media_MediaMetadataRetriever.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp
index 5d14763..3d7dbf9 100644
--- a/media/jni/android_media_MediaMetadataRetriever.cpp
+++ b/media/jni/android_media_MediaMetadataRetriever.cpp
@@ -343,22 +343,6 @@ static void android_media_MediaMetadataRetriever_native_init(JNIEnv *env)
jniThrowException(env, "java/lang/RuntimeException", "Can't find android/graphics/Bitmap");
return;
}
-#if USE_PRIVATE_NATIVE_BITMAP_CONSTUCTOR
- fields.bitmapConstructor = env->GetMethodID(fields.bitmapClazz, "<init>", "(I[BZ[BI)V");
- if (fields.bitmapConstructor == NULL) {
- jniThrowException(env, "java/lang/RuntimeException", "Can't find Bitmap constructor");
- return;
- }
- fields.createBitmapRotationMethod =
- env->GetStaticMethodID(fields.bitmapClazz, "createBitmap",
- "(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)"
- "Landroid/graphics/Bitmap;");
- if (fields.createBitmapRotationMethod == NULL) {
- jniThrowException(env, "java/lang/RuntimeException",
- "Can't find Bitmap.createBitmap method");
- return;
- }
-#else
fields.createBitmapMethod =
env->GetStaticMethodID(fields.bitmapClazz, "createBitmap",
"(IILandroid/graphics/Bitmap$Config;)"
@@ -388,7 +372,6 @@ static void android_media_MediaMetadataRetriever_native_init(JNIEnv *env)
"Can't find Bitmap$Config.nativeToConfig(int) method");
return;
}
-#endif
}
static void android_media_MediaMetadataRetriever_native_setup(JNIEnv *env, jobject thiz)