[geany/geany] 36f447: Remove some unused variables

Matthew Brush git-noreply at xxxxx
Fri Jan 12 22:09:36 UTC 2018


Branch:      refs/heads/master
Author:      Matthew Brush <matt at geany.org>
Committer:   Matthew Brush <matt at geany.org>
Date:        Thu, 21 Dec 2017 01:22:51 UTC
Commit:      36f44741b5daa67f08c4251c147457b95545ef14
             https://github.com/geany/geany/commit/36f44741b5daa67f08c4251c147457b95545ef14

Log Message:
-----------
Remove some unused variables

These were introduced in #1470 and a fix was also provided in #1554.


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

Modified: src/editor.c
7 lines changed, 3 insertions(+), 4 deletions(-)
===================================================================
@@ -2391,6 +2391,8 @@ typedef struct
 
 
 #define CURSOR_PLACEHOLDER "_" /* Would rather use … but not all docs are unicode */
+
+
 /* Replaces the internal cursor markers with the placeholder suitable for
  * display. Except for the first cursor if indicator_for_first is FALSE,
  * which is simply deleted.
@@ -2400,10 +2402,9 @@ typedef struct
 static GSList *replace_cursor_markers(GeanyEditor *editor, GString *template,
 									  gboolean indicator_for_first)
 {
-	gssize cur_index = -1;
 	gint i = 0;
 	GSList *temp_list = NULL;
-	gint cursor_steps = 0, old_cursor = 0;
+	gint cursor_steps = 0;
 	SelectionRange *sel;
 
 	while (TRUE)
@@ -2524,7 +2525,6 @@ void editor_insert_text_block(GeanyEditor *editor, const gchar *text, gint inser
 static gboolean find_next_snippet_indicator(GeanyEditor *editor, SelectionRange *sel)
 {
 	ScintillaObject *sci = editor->sci;
-	gint val;
 	gint pos = sci_get_current_position(sci);
 
 	if (pos == sci_get_length(sci))
@@ -2552,7 +2552,6 @@ static gboolean find_next_snippet_indicator(GeanyEditor *editor, SelectionRange
 gboolean editor_goto_next_snippet_cursor(GeanyEditor *editor)
 {
 	ScintillaObject *sci = editor->sci;
-	gint current_pos = sci_get_current_position(sci);
 	SelectionRange sel;
 
 	if (find_next_snippet_indicator(editor, &sel))



--------------
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