mesa/image: delete dead store

The return value here is a) always zero, b) never used.

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
nobled 2011-10-17 21:27:55 +00:00
parent 20b0daf82d
commit 37fd22a091
1 changed files with 0 additions and 7 deletions

View File

@ -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) {