public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [COMMITTED] elf: Remove unused functions from tst-audit25(a,b)
@ 2022-03-31 12:12 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-03-31 12:12 UTC (permalink / raw)
  To: libc-alpha

---
 elf/tst-audit25a.c | 8 --------
 elf/tst-audit25b.c | 8 --------
 2 files changed, 16 deletions(-)

diff --git a/elf/tst-audit25a.c b/elf/tst-audit25a.c
index 49173e8625..c2cff8541b 100644
--- a/elf/tst-audit25a.c
+++ b/elf/tst-audit25a.c
@@ -49,14 +49,6 @@ handle_restart (void)
   return 0;
 }
 
-static inline bool
-startswith (const char *str, const char *pre)
-{
-  size_t lenpre = strlen (pre);
-  size_t lenstr = strlen (str);
-  return lenstr < lenpre ? false : memcmp (pre, str, lenpre) == 0;
-}
-
 static int
 do_test (int argc, char *argv[])
 {
diff --git a/elf/tst-audit25b.c b/elf/tst-audit25b.c
index a56638d501..46391770fd 100644
--- a/elf/tst-audit25b.c
+++ b/elf/tst-audit25b.c
@@ -48,14 +48,6 @@ handle_restart (void)
   return 0;
 }
 
-static inline bool
-startswith (const char *str, const char *pre)
-{
-  size_t lenpre = strlen (pre);
-  size_t lenstr = strlen (str);
-  return lenstr >= lenpre && memcmp (pre, str, lenpre) == 0;
-}
-
 static int
 do_test (int argc, char *argv[])
 {
-- 
2.32.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-31 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 12:12 [COMMITTED] elf: Remove unused functions from tst-audit25(a,b) Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).