[06/10] sim/aarch64: remove two unused functions

Message ID 4e799e1e8eec565afacdf31e689d8f97ce71c498.1666192979.git.aburgess@redhat.com
State Committed
Commit 36edbb454fc9e720e723923d549b9f5356657a73
Headers
Series Building the sim/ tree with clang |

Commit Message

Andrew Burgess Oct. 19, 2022, 3:24 p.m. UTC
  These functions are not used.  Clang warns about the unused functions,
which is then converted into an error by -Werror.

Delete the unused functions.
---
 sim/aarch64/simulator.c | 16 ----------------
 1 file changed, 16 deletions(-)
  

Comments

Mike Frysinger Oct. 23, 2022, 1:55 p.m. UTC | #1
lgtm
-mike
  
Andrew Burgess Oct. 24, 2022, 4:26 p.m. UTC | #2
Mike Frysinger <vapier@gentoo.org> writes:

> lgtm

Pushed.

Thanks,
Andrew
  

Patch

diff --git a/sim/aarch64/simulator.c b/sim/aarch64/simulator.c
index 516a7830522..5881725cefd 100644
--- a/sim/aarch64/simulator.c
+++ b/sim/aarch64/simulator.c
@@ -83,22 +83,6 @@ 
     }									\
   while (0)
 
-/* Helper functions used by expandLogicalImmediate.  */
-
-/* for i = 1, ... N result<i-1> = 1 other bits are zero  */
-static inline uint64_t
-ones (int N)
-{
-  return (N == 64 ? (uint64_t)-1UL : ((1UL << N) - 1));
-}
-
-/* result<0> to val<N>  */
-static inline uint64_t
-pickbit (uint64_t val, int N)
-{
-  return pickbits64 (val, N, N);
-}
-
 static uint64_t
 expand_logical_immediate (uint32_t S, uint32_t R, uint32_t N)
 {