[binutils-gdb] bfd: Remove unused static find function from doc/chew.c
Mark Wielaard
mark@sourceware.org
Fri Nov 8 10:12:14 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=328f42d85b8eb1f3f97e5a1ec97e444a6dd72e33
commit 328f42d85b8eb1f3f97e5a1ec97e444a6dd72e33
Author: Mark Wielaard <mark@klomp.org>
Date: Thu Nov 7 18:40:03 2024 +0100
bfd: Remove unused static find function from doc/chew.c
After commit 2e60790cf7c27d79f90f2dcb81e1930dc980bc1c "Remove the
paramstuff word" there is no caller left of the static find function
in doc/chew.c, so it should be removed.
* doc/chew.c (find): Remove.
Diff:
---
bfd/doc/chew.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 842d4153005..b0cb91448be 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -202,22 +202,6 @@ init_string (string_type *buffer)
init_string_with_size (buffer, DEF_SIZE);
}
-static int
-find (string_type *str, char *what)
-{
- unsigned int i;
- char *p;
- p = what;
- for (i = 0; i < str->write_idx && *p; i++)
- {
- if (*p == str->ptr[i])
- p++;
- else
- p = what;
- }
- return (*p == 0);
-}
-
static void
write_buffer (string_type *buffer, FILE *f)
{
More information about the Binutils-cvs
mailing list