mesa/main: remove unused IROUNDD
authorDylan Baker <dylan@pnwbakers.com>
Fri, 7 Sep 2018 22:04:40 +0000 (15:04 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 21 Apr 2020 18:09:03 +0000 (11:09 -0700)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>

src/util/imports.h

index f7563dcb405504a9b62571b43397a6c539893d16..3a73275ffd62748fd259113ac60b017d31cc79cd 100644 (file)
@@ -103,14 +103,6 @@ static inline int IROUND(float f)
    return (int) ((f >= 0.0F) ? (f + 0.5F) : (f - 0.5F));
 }
 
-/**
- * Convert double to int by rounding to nearest integer, away from zero.
- */
-static inline int IROUNDD(double d)
-{
-   return (int) ((d >= 0.0) ? (d + 0.5) : (d - 0.5));
-}
-
 /**
  * Convert float to int64 by rounding to nearest integer.
  */