From: Mark Wielaard Date: Thu, 7 Nov 2024 17:40:03 +0000 (+0100) Subject: bfd: Remove unused static find function from doc/chew.c X-Git-Tag: gdb-16-branchpoint~514 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=328f42d85b8eb1f3f97e5a1ec97e444a6dd72e33;p=thirdparty%2Fbinutils-gdb.git 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 --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) {