[geany/geany] d91c53: Remove a few dead assignments

Colomban Wendling git-noreply at xxxxx
Sat Jul 13 21:00:43 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 13 Jul 2013 21:00:43 UTC
Commit:      d91c532f958dbb88c047f5bf9858f5b53f28a5a7
             https://github.com/geany/geany/commit/d91c532f958dbb88c047f5bf9858f5b53f28a5a7

Log Message:
-----------
Remove a few dead assignments

Spotted by clang --analyze.


Modified Paths:
--------------
    src/editor.c
    src/symbols.c

Modified: src/editor.c
4 files changed, 1 insertions(+), 3 deletions(-)
===================================================================
@@ -1754,13 +1754,11 @@ gchar *editor_get_word_at_pos(GeanyEditor *editor, gint pos, const gchar *wordch
 
 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--;


Modified: src/symbols.c
1 files changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -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



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list