Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9592156a authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Remove dead-code

“format” is reset in all code-paths below.

Test: compiled
Bug: cleanup
Change-Id: I2503fc6ca8726cf39f3a9c46264d504623a7290b
parent 9393a945
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -493,14 +493,8 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config,
        cnx->egl.eglGetConfigAttrib(iDpy, config, EGL_COLOR_COMPONENT_TYPE_EXT,
                                    &componentType);

        // by default, just pick appropriate RGBA
        EGLint format = HAL_PIXEL_FORMAT_RGBA_8888;
        if (dp->haveExtension("EGL_EXT_pixel_format_float") &&
            (componentType == EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT)) {
            format = HAL_PIXEL_FORMAT_RGBA_FP16;
        }
        EGLint format;
        android_dataspace dataSpace = HAL_DATASPACE_UNKNOWN;

        EGLint a = 0;
        EGLint r, g, b;
        r = g = b = 0;