Closed Bug 613283 Opened 14 years ago Closed 14 years ago

content/canvas/src/WebGLContextGL.cpp:127: warning: 'PRBool InternalFormatHasAlpha(WebGLenum)' defined but not used

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b8

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

Bug 539771 added the following static helper function to WebGLContextGL.cpp... 

+static PRBool
+InternalFormatHasAlpha(WebGLenum aInternalFormat) {
+    return aInternalFormat == LOCAL_GL_RGBA4 ||
+        aInternalFormat == LOCAL_GL_RGB5_A1;
+}
http://hg.mozilla.org/mozilla-central/diff/941c3d14e14d/content/canvas/src/WebGLContextGL.cpp

... but there are no callers of this method, so we spam this warning:
> WebGLContextGL.cpp:127: warning: 'PRBool InternalFormatHasAlpha(WebGLenum)' defined but not used


Note that this changeset added a method of the same name, with a separate definition, in the .h file:
http://hg.mozilla.org/mozilla-central/diff/941c3d14e14d/content/canvas/src/WebGLContext.h
*That* method has callers (in the .h file), but the one from the .cpp file does not have any callers & should probably be removed.
OS: Linux → All
Hardware: x86_64 → All
Requesting r+a.  Just reverting the introduction of an unused method. (with an actually-used alternate version declared elsewhere, as noted above -- so I think this was just a stale chunk that wasn't intended to land)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #491617 - Flags: review?(vladimir)
Attachment #491617 - Flags: approval2.0?
Attachment #491617 - Flags: approval2.0? → approval2.0+
http://hg.mozilla.org/mozilla-central/rev/d07d0b74d3e2
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: