summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-04-11 14:03:00 +0200
committerSamuel Pitoiset <[email protected]>2017-04-13 09:58:24 +0200
commitdf2dba558c921f38a1225e043d9987f7de91a07b (patch)
tree653061f12d72199a99cdcb2227803578d7911c9d /src/mesa/main
parentbdb53e240ba70b24263bd1e5fb7d24c12b804016 (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/pack.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c
index 89faf515443..760c46afe74 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.