[07/10] sim/rx: delete an unused function

Message ID 822c1b483bf6f6739d61ee1fceff3e1afb073382.1666192979.git.aburgess@redhat.com
State Committed
Headers
Series Building the sim/ tree with clang |

Commit Message

Andrew Burgess Oct. 19, 2022, 3:24 p.m. UTC
  Delete a single unused function from the rx simulator.  Clang warns
about the function being unused, which is converted into an error by
-Werror.
---
 sim/rx/rx.c | 8 --------
 1 file changed, 8 deletions(-)
  

Comments

Mike Frysinger Oct. 23, 2022, 1:54 p.m. UTC | #1
lgtm
-mike
  

Patch

diff --git a/sim/rx/rx.c b/sim/rx/rx.c
index 70b1b9729b7..7e812c16fd7 100644
--- a/sim/rx/rx.c
+++ b/sim/rx/rx.c
@@ -754,14 +754,6 @@  typedef union {
   float f;
 } FloatInt;
 
-static inline int
-float2int (float f)
-{
-  FloatInt fi;
-  fi.f = f;
-  return fi.i;
-}
-
 static inline float
 int2float (int i)
 {