mesa: remove unused _math_trans_4chan()
authorBrian Paul <brianp@vmware.com>
Mon, 16 Feb 2015 18:12:40 +0000 (11:12 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Feb 2015 22:36:59 +0000 (15:36 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/math/m_translate.c
src/mesa/math/m_translate.h

index 0b8c858d7d5561e73a9d20ed43c0a58fb9c94737..3a8ca74f6224cf1b634fef1eb2c6704031a2cbbf 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "main/glheader.h"
 #include "main/macros.h"
-#include "main/mtypes.h"               /* GLchan hack */
 
 #include "m_translate.h"
 
@@ -675,26 +674,6 @@ void _math_trans_4ub(GLubyte (*to)[4],
    _math_trans_4ub_tab[size][TYPE_IDX(type)]( to, ptr, stride, start, n );
 }
 
-/**
- * Translate vector of values to GLchan [4].
- */
-void _math_trans_4chan( GLchan (*to)[4],
-                       const void *ptr,
-                       GLuint stride,
-                       GLenum type,
-                       GLuint size,
-                       GLuint start,
-                       GLuint n )
-{
-#if CHAN_TYPE == GL_UNSIGNED_BYTE
-   _math_trans_4ub( to, ptr, stride, type, size, start, n );
-#elif CHAN_TYPE == GL_UNSIGNED_SHORT
-   _math_trans_4us( to, ptr, stride, type, size, start, n );
-#elif CHAN_TYPE == GL_FLOAT
-   _math_trans_4fn( to, ptr, stride, type, size, start, n );
-#endif
-}
-
 /**
  * Translate vector of values to GLushort [4].
  */
index 250921a3f3a07223e26d8a31d6d4d793f8b15425..bdfa4c77010ccf83154aae13bb220ae7b585912e 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "main/compiler.h"
 #include "main/glheader.h"
-#include "main/mtypes.h"               /* hack for GLchan */
-#include "swrast/s_chan.h"
 
 /**
  * Array translation.
@@ -76,14 +74,6 @@ extern void _math_trans_4ub(GLubyte (*to)[4],
                            GLuint start,
                            GLuint n );
 
-extern void _math_trans_4chan( GLchan (*to)[4],
-                              const void *ptr,
-                              GLuint stride,
-                              GLenum type,
-                              GLuint size,
-                              GLuint start,
-                              GLuint n );
-
 extern void _math_trans_4us(GLushort (*to)[4],
                            const void *ptr,
                            GLuint stride,