Mesa (master): mesa/image: delete dead store
Dylan Noblesmith
nobled at kemper.freedesktop.org
Thu Dec 8 21:25:42 UTC 2011
Module: Mesa
Branch: master
Commit: 37fd22a09166c27c47e4803f5ee14047ee03856d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37fd22a09166c27c47e4803f5ee14047ee03856d
Author: nobled <nobled at dreamwidth.org>
Date: Mon Oct 17 21:27:55 2011 +0000
mesa/image: delete dead store
The return value here is a) always zero, b) never used.
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/image.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index f29b566..31a0f94 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1220,16 +1220,9 @@ _mesa_image_address( GLuint dimensions,
if (type == GL_BITMAP) {
/* BITMAP data */
GLint comp_per_pixel; /* components per pixel */
- GLint bytes_per_comp; /* bytes per component */
GLint bytes_per_row;
GLint bytes_per_image;
- /* Compute bytes per component */
- bytes_per_comp = _mesa_sizeof_packed_type( type );
- if (bytes_per_comp < 0) {
- return NULL;
- }
-
/* Compute number of components per pixel */
comp_per_pixel = _mesa_components_in_format( format );
if (comp_per_pixel < 0) {
More information about the mesa-commit
mailing list