Mesa (master): mesa: remove unused clamp_float_to_uint() and clamp_half_to_uint()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Thu Apr 13 08:06:57 UTC 2017
Module: Mesa
Branch: master
Commit: df2dba558c921f38a1225e043d9987f7de91a07b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=df2dba558c921f38a1225e043d9987f7de91a07b
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Apr 11 14:03:00 2017 +0200
mesa: remove unused clamp_float_to_uint() and clamp_half_to_uint()
Fixes the following Clang warnings.
main/pack.c:470:1: warning: unused function 'clamp_float_to_uint' [-Wunused-function]
clamp_float_to_uint(GLfloat f)
^
main/pack.c:477:1: warning: unused function 'clamp_half_to_uint' [-Wunused-function]
clamp_half_to_uint(GLhalfARB h)
^
2 warnings generated.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
---
src/mesa/main/pack.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index 89faf51544..760c46afe7 100644
--- a/src/mesa/main/pack.c
+++ b/src/mesa/main/pack.c
@@ -466,21 +466,6 @@ extract_uint_indexes(GLuint n, GLuint indexes[],
}
-static inline GLuint
-clamp_float_to_uint(GLfloat f)
-{
- return f < 0.0F ? 0 : _mesa_lroundevenf(f);
-}
-
-
-static inline GLuint
-clamp_half_to_uint(GLhalfARB h)
-{
- GLfloat f = _mesa_half_to_float(h);
- return f < 0.0F ? 0 : _mesa_lroundevenf(f);
-}
-
-
/*
* Unpack a row of stencil data from a client buffer according to
* the pixel unpacking parameters.
More information about the mesa-commit
mailing list