]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
bfd: Remove unused static find function from doc/chew.c
authorMark Wielaard <mark@klomp.org>
Thu, 7 Nov 2024 17:40:03 +0000 (18:40 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 8 Nov 2024 10:08:56 +0000 (11:08 +0100)
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.

bfd/doc/chew.c

index 842d4153005ec4d26c78ba49a562db163fb73efb..b0cb91448bef5b4d4dbd9728b1cc778beb96506b 100644 (file)
@@ -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)
 {