mesa: remove unused _mesa_cpal_compressed_format_type() function
authorBrian Paul <brianp@vmware.com>
Mon, 8 Oct 2012 23:45:57 +0000 (17:45 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 9 Oct 2012 13:05:47 +0000 (07:05 -0600)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texcompress_cpal.c
src/mesa/main/texcompress_cpal.h

index 4aa1f610e3252679d74fa2b300474808e14a2144..75389a4370714b1508aea77357146ff1337fb3b4 100644 (file)
@@ -140,21 +140,6 @@ _mesa_cpal_compressed_size(int level, GLenum internalFormat,
    return expect_size;
 }
 
-void
-_mesa_cpal_compressed_format_type(GLenum internalFormat, GLenum *format,
-                                 GLenum *type)
-{
-   const struct cpal_format_info *info;
-
-   if (internalFormat < GL_PALETTE4_RGB8_OES
-       || internalFormat > GL_PALETTE8_RGB5_A1_OES) {
-      return;
-   }
-
-   info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
-   *format = info->format;
-   *type = info->type;
-}
 
 /**
  * Convert a call to glCompressedTexImage2D() where internalFormat is a
index 7507d5c1b6572b0058096bd2df8e10f3176dc46b..7d28fd8669d57bdd72b5b60adf102d1fc8e41411 100644 (file)
@@ -38,8 +38,5 @@ extern unsigned
 _mesa_cpal_compressed_size(int level, GLenum internalFormat,
                           unsigned width, unsigned height);
 
-extern void
-_mesa_cpal_compressed_format_type(GLenum internalFormat, GLenum *format,
-                                 GLenum *type);
 
 #endif /* TEXCOMPRESS_CPAL_H */