Mesa (master): mesa: remove unused _mesa_cpal_compressed_format_type() function
Brian Paul
brianp at kemper.freedesktop.org
Tue Oct 9 13:06:47 UTC 2012
Module: Mesa
Branch: master
Commit: 541158fbb972252004de328391e9a1694572cddb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=541158fbb972252004de328391e9a1694572cddb
Author: Brian Paul <brianp at vmware.com>
Date: Mon Oct 8 17:45:57 2012 -0600
mesa: remove unused _mesa_cpal_compressed_format_type() function
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/texcompress_cpal.c | 15 ---------------
src/mesa/main/texcompress_cpal.h | 3 ---
2 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/src/mesa/main/texcompress_cpal.c b/src/mesa/main/texcompress_cpal.c
index 4aa1f61..75389a4 100644
--- a/src/mesa/main/texcompress_cpal.c
+++ b/src/mesa/main/texcompress_cpal.c
@@ -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
diff --git a/src/mesa/main/texcompress_cpal.h b/src/mesa/main/texcompress_cpal.h
index 7507d5c..7d28fd8 100644
--- a/src/mesa/main/texcompress_cpal.h
+++ b/src/mesa/main/texcompress_cpal.h
@@ -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 */
More information about the mesa-commit
mailing list