Commit 1f1d9321 authored by Paul Eggert's avatar Paul Eggert

* search.c (boyer_moore, wordify): Remove vars set but not used.

parent c59478bc
2011-04-03 Paul Eggert <eggert@cs.ucla.edu>
* search.c (boyer_moore, wordify): Remove vars set but not used.
* indent.c (MULTIBYTE_BYTES_WIDTH): Don't compute wide_column.
All callers changed. This avoids the need for an unused var.
......@@ -1674,7 +1674,6 @@ boyer_moore (EMACS_INT n, unsigned char *base_pat,
int translate_prev_byte1 = 0;
int translate_prev_byte2 = 0;
int translate_prev_byte3 = 0;
int translate_prev_byte4 = 0;
/* The general approach is that we are going to maintain that we know
the first (closest to the present position, in whatever direction
......@@ -1730,11 +1729,7 @@ boyer_moore (EMACS_INT n, unsigned char *base_pat,
{
translate_prev_byte2 = str[cblen - 3];
if (cblen > 3)
{
translate_prev_byte3 = str[cblen - 4];
if (cblen > 4)
translate_prev_byte4 = str[cblen - 5];
}
translate_prev_byte3 = str[cblen - 4];
}
}
......@@ -2091,7 +2086,7 @@ set_search_regs (EMACS_INT beg_byte, EMACS_INT nbytes)
static Lisp_Object
wordify (Lisp_Object string, int lax)
{
register unsigned char *p, *o;
register unsigned char *o;
register EMACS_INT i, i_byte, len, punct_count = 0, word_count = 0;
Lisp_Object val;
int prev_c = 0;
......@@ -2099,7 +2094,6 @@ wordify (Lisp_Object string, int lax)
int whitespace_at_end;
CHECK_STRING (string);
p = SDATA (string);
len = SCHARS (string);
for (i = 0, i_byte = 0; i < len; )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment