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/light.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'opengl/libagl/light.cpp') diff --git a/opengl/libagl/light.cpp b/opengl/libagl/light.cpp index e7fe9d71a3..216c725128 100644 --- a/opengl/libagl/light.cpp +++ b/opengl/libagl/light.cpp @@ -467,7 +467,6 @@ static void lightx(GLenum i, GLenum pname, GLfixed param, ogles_context_t* c) } light_t& light = c->lighting.lights[i-GL_LIGHT0]; - const GLfixed kDegToRad = GLfixed((M_PI * gglIntToFixed(1)) / 180.0f); switch (pname) { case GL_SPOT_EXPONENT: if (GGLfixed(param) >= gglIntToFixed(128)) { -- cgit v1.2.3-59-g8ed1b