From 1e02a62b7b88273b087c056af5d46896233a3e9d Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 26 Oct 2017 15:18:12 -0700 Subject: Use -Werror in frameworks/native/opengl/libagl * Remove unused local variables and functions. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib8e3ee6e3c1ee3cf1e26f265fc87890f1690c6a2 --- opengl/libagl/texture.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'opengl/libagl/texture.cpp') diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp index 3fe5ed0630..aae8e058bf 100644 --- a/opengl/libagl/texture.cpp +++ b/opengl/libagl/texture.cpp @@ -356,10 +356,6 @@ int createTextureSurface(ogles_context_t* c, GLenum format, GLenum type, GLsizei width, GLsizei height, GLenum compressedFormat = 0) { - // find out which texture is bound to the current unit - const int active = c->textures.active; - const GLuint name = c->textures.tmu[active].name; - // convert the pixelformat to one we can handle const int32_t formatIdx = convertGLPixelFormat(format, type); if (formatIdx == 0) { // we don't know what to do with this @@ -1192,7 +1188,6 @@ void glTexImage2D( const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); const int32_t align = c->textures.unpackAlignment-1; const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; - const size_t size = bpr * height; const int32_t stride = bpr / pixelFormat.size; GGLSurface userSurface; @@ -1276,7 +1271,6 @@ void glTexSubImage2D( const GGLFormat& pixelFormat(c->rasterizer.formats[formatIdx]); const int32_t align = c->textures.unpackAlignment-1; const int32_t bpr = ((width * pixelFormat.size) + align) & ~align; - const size_t size = bpr * height; const int32_t stride = bpr / pixelFormat.size; GGLSurface userSurface; userSurface.version = sizeof(userSurface); -- cgit v1.2.3-59-g8ed1b