]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove unused local in simple_search
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Nov 2022 06:03:25 +0000 (23:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Nov 2022 06:04:00 +0000 (23:04 -0700)
* src/search.c (simple_search): Remove unused local.

src/search.c

index a7f958c362bdbe3149069bc0ad5938999e7d73ba..1c5831b6de7575922b6e6db93f154bb45fc7472b 100644 (file)
@@ -1558,7 +1558,6 @@ simple_search (EMACS_INT n, unsigned char *pat,
        while (1)
          {
            /* Try matching at position POS.  */
-           ptrdiff_t this_pos = pos;
            ptrdiff_t this_pos_byte = pos_byte;
            ptrdiff_t this_len = len;
            unsigned char *p = pat;
@@ -1580,7 +1579,6 @@ simple_search (EMACS_INT n, unsigned char *pat,
                p += charlen;
 
                this_pos_byte += buf_charlen;
-               this_pos++;
              }
 
            if (this_len == 0)