Bug 785597 - Get rid of unused mGLVersion field. r=snorp

This commit is contained in:
Kartikaya Gupta
2012-12-21 11:33:09 -05:00
parent ae35772ec1
commit 4f9c4a59df
4 changed files with 0 additions and 20 deletions

View File

@@ -21,7 +21,6 @@ void AndroidEGLObject::Init(JNIEnv* aJEnv) {
jEGLSurfacePointerField = aJEnv->GetFieldID(jClass, "mEGLSurface", "I");
}
jmethodID AndroidGLController::jSetGLVersionMethod = 0;
jmethodID AndroidGLController::jWaitForValidSurfaceMethod = 0;
jmethodID AndroidGLController::jProvideEGLSurfaceMethod = 0;
jmethodID AndroidGLController::jResumeCompositorIfValidMethod = 0;
@@ -31,7 +30,6 @@ AndroidGLController::Init(JNIEnv* aJEnv)
{
jclass jClass = reinterpret_cast<jclass>(aJEnv->NewGlobalRef(aJEnv->FindClass("org/mozilla/gecko/gfx/GLController")));
jSetGLVersionMethod = aJEnv->GetMethodID(jClass, "setGLVersion", "(I)V");
jProvideEGLSurfaceMethod = aJEnv->GetMethodID(jClass, "provideEGLSurface",
"()Ljavax/microedition/khronos/egl/EGLSurface;");
jResumeCompositorIfValidMethod = aJEnv->GetMethodID(jClass, "resumeCompositorIfValid", "()V");
@@ -46,14 +44,6 @@ AndroidGLController::Acquire(JNIEnv* aJEnv, jobject aJObj)
mJObj = aJEnv->NewGlobalRef(aJObj);
}
void
AndroidGLController::SetGLVersion(int aVersion)
{
ASSERT_THREAD();
AutoLocalJNIFrame jniFrame(mJEnv, 0);
mJEnv->CallVoidMethod(mJObj, jSetGLVersionMethod, aVersion);
}
void
AndroidGLController::Reacquire(JNIEnv *aJEnv, jobject aJObj)
{