Bug 613283: Remove unused/duplicate method 'InternalFormatHasAlpha'. r=vlad a=bsmedberg
authorDaniel Holbert <dholbert@cs.stanford.edu>
Tue, 30 Nov 2010 21:27:30 -0800
changeset 58425 d07d0b74d3e20f02ffc31ccfd2ed25848c1e98af
parent 58424 1f50130c0c948e3bc0b02faf4683827a050035e2
child 58426 17d1fcf74e5c36018cb6697eb09f7a0d1b4dfae6
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersvlad, bsmedberg
bugs613283
milestone2.0b8pre
Bug 613283: Remove unused/duplicate method 'InternalFormatHasAlpha'. r=vlad a=bsmedberg
content/canvas/src/WebGLContextGL.cpp
--- a/content/canvas/src/WebGLContextGL.cpp
+++ b/content/canvas/src/WebGLContextGL.cpp
@@ -118,22 +118,16 @@ WebGLProgram::GetUniformLocationObject(G
         return nsnull;
     }
 
     nsRefPtr<WebGLUniformLocation> loc = new WebGLUniformLocation(mContext, this, glLocation);
     mMapUniformLocations.Put(glLocation, loc);
     return loc.forget();
 }
 
-static PRBool
-InternalFormatHasAlpha(WebGLenum aInternalFormat) {
-    return aInternalFormat == LOCAL_GL_RGBA4 ||
-        aInternalFormat == LOCAL_GL_RGB5_A1;
-}
-
 //
 //  WebGL API
 //
 
 
 /* void GlActiveTexture (in GLenum texture); */
 NS_IMETHODIMP
 WebGLContext::ActiveTexture(WebGLenum texture)