summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-11-08 14:11:54 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-11-09 07:53:52 +0100
commit9032551306bfac623984bed0031cbd6b8bfe54fb (patch)
treeb7e51de7bc10fab148d9cc8121834b45d524c46a /android
parentc254acddbc5e45a7e70be3e7b688ed5dddca3c2d (diff)
android: Drop unused GLController#provideEGLSurface
It was already unused when added in commit a6ecd8b2a9f0f3eaa66388861a6dcc6260ec72b9 Date: Thu Jun 26 11:22:21 2014 +0200 LOAndroid3: ant/make for building, Bootstrap project The method looks similar to the first half of `GLController#provideEGLSurface` and is unused, so drop it. Change-Id: I0cabfddefcdcca97048cb6f494590afdde5c1dc7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159158 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'android')
-rw-r--r--android/source/src/java/org/mozilla/gecko/gfx/GLController.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/android/source/src/java/org/mozilla/gecko/gfx/GLController.java b/android/source/src/java/org/mozilla/gecko/gfx/GLController.java
index e296f4760f68..533980979683 100644
--- a/android/source/src/java/org/mozilla/gecko/gfx/GLController.java
+++ b/android/source/src/java/org/mozilla/gecko/gfx/GLController.java
@@ -240,26 +240,6 @@ public class GLController {
}
}
- /**
- * Provides an EGLSurface without assuming ownership of this surface.
- * This class does not keep a reference to the provided EGL surface; the
- * caller assumes ownership of the surface once it is returned.
- */
- private EGLSurface provideEGLSurface() {
- if (mEGL == null) {
- initEGL();
- }
-
- Object window = mView.getNativeWindow();
- EGLSurface surface = mEGL.eglCreateWindowSurface(mEGLDisplay, mEGLConfig, window, null);
- if (surface == null || surface == EGL10.EGL_NO_SURFACE) {
- throw new GLControllerException("EGL window surface could not be created! " +
- getEGLError());
- }
-
- return surface;
- }
-
private String getEGLError() {
return "Error " + mEGL.eglGetError();
}