Remove a few dead assignments
Spotted by clang --analyze.
This commit is contained in:
parent
f23b7267cf
commit
d91c532f95
@ -1754,13 +1754,11 @@ editor_read_word_stem(GeanyEditor *editor, gint pos, const gchar *wordchars)
|
||||
|
||||
static gint find_previous_brace(ScintillaObject *sci, gint pos)
|
||||
{
|
||||
gchar c;
|
||||
gint orig_pos = pos;
|
||||
|
||||
c = sci_get_char_at(sci, pos);
|
||||
while (pos >= 0 && pos > orig_pos - 300)
|
||||
{
|
||||
c = sci_get_char_at(sci, pos);
|
||||
gchar c = sci_get_char_at(sci, pos);
|
||||
if (utils_is_opening_brace(c, editor_prefs.brace_match_ltgt))
|
||||
return pos;
|
||||
pos--;
|
||||
|
@ -2098,7 +2098,6 @@ static gchar *parse_cpp_function_at_line(ScintillaObject *sci, gint tag_line)
|
||||
while (end > 0 && isspace(sci_get_char_at(sci, end))) end--;
|
||||
|
||||
start = end;
|
||||
c = 0;
|
||||
/* Use tmp to find SCE_C_IDENTIFIER or SCE_C_GLOBALCLASS chars */
|
||||
while (start >= 0 && ((tmp = sci_get_style_at(sci, start)) == SCE_C_IDENTIFIER
|
||||
|| tmp == SCE_C_GLOBALCLASS
|
||||
|
Loading…
x
Reference in New Issue
Block a user