Revision: 5812 http://geany.svn.sourceforge.net/geany/?rev=5812&view=rev Author: eht16 Date: 2011-05-22 09:58:06 +0000 (Sun, 22 May 2011)
Log Message: ----------- Remove unused variables (patch by Eugene Arshinov, thanks).
Modified Paths: -------------- trunk/ChangeLog trunk/src/about.c trunk/src/build.c trunk/tagmanager/tm_workspace.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-05-21 09:01:55 UTC (rev 5811) +++ trunk/ChangeLog 2011-05-22 09:58:06 UTC (rev 5812) @@ -1,3 +1,9 @@ +2011-05-22 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> + + * src/about.c, src/build.c, tagmanager/tm_workspace.c: + Remove unused variables (patch by Eugene Arshinov, thanks). + + 2011-05-12 Colomban Wendling <colomban(at)geany(dot)org>
* src/encodings.c:
Modified: trunk/src/about.c =================================================================== --- trunk/src/about.c 2011-05-21 09:01:55 UTC (rev 5811) +++ trunk/src/about.c 2011-05-22 09:58:06 UTC (rev 5812) @@ -137,7 +137,6 @@ GtkWidget *table; GtkWidget *license_scrollwin; GtkWidget *info_box; - GtkWidget *button; GtkWidget *header_hbox; GtkWidget *header_eventbox; GdkPixbuf *icon; @@ -154,7 +153,7 @@ gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER_ON_PARENT); gtk_window_set_title(GTK_WINDOW(dialog), _("About Geany")); gtk_widget_set_name(dialog, "GeanyDialog"); - button = gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE); + gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_CLOSE); gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE); g_signal_connect(dialog, "key-press-event", G_CALLBACK(gb_on_key_pressed), NULL);
Modified: trunk/src/build.c =================================================================== --- trunk/src/build.c 2011-05-21 09:01:55 UTC (rev 5811) +++ trunk/src/build.c 2011-05-22 09:58:06 UTC (rev 5812) @@ -1654,11 +1654,8 @@ static void on_toolbutton_make_activate(GtkWidget *menuitem, gpointer user_data) { gchar *msg; - gint grp, cmd;
last_toolbutton_action = user_data; - grp = GPOINTER_TO_GRP(user_data); - cmd = GPOINTER_TO_CMD(user_data); if (last_toolbutton_action == GBO_TO_POINTER(GEANY_GBO_MAKE_ALL)) msg = _("Build the current file with Make and the default target"); else if (last_toolbutton_action == GBO_TO_POINTER(GEANY_GBO_CUSTOM)) @@ -2116,11 +2113,8 @@ { gchar *entries[GEANY_BC_CMDENTRIES_COUNT]; gboolean changed = FALSE; - GeanyBuildSource src; enum GeanyBuildCmdEntries i;
- src = table_data->rows[drow]->src; - for (i = 0; i < GEANY_BC_CMDENTRIES_COUNT; i++) { entries[i] = g_strdup(get_build_command_entry_text(table_data->rows[drow]->entries[i]));
Modified: trunk/tagmanager/tm_workspace.c =================================================================== --- trunk/tagmanager/tm_workspace.c 2011-05-21 09:01:55 UTC (rev 5811) +++ trunk/tagmanager/tm_workspace.c 2011-05-22 09:58:06 UTC (rev 5812) @@ -223,11 +223,10 @@ { char *str = g_strdup_printf("#include "%s"\n", (char*)node->data); int str_len = strlen(str); - size_t size;
- size = fwrite(str, str_len, 1, fp); + fwrite(str, str_len, 1, fp); g_free(str); - node = g_list_next (node); + node = g_list_next(node); } }
@@ -251,9 +250,8 @@ } else { - size_t size; - size = fwrite(contents, length, 1, fp); - size = fwrite("\n", 1, 1, fp); /* in case file doesn't end in newline (e.g. windows). */ + fwrite(contents, length, 1, fp); + fwrite("\n", 1, 1, fp); /* in case file doesn't end in newline (e.g. windows). */ g_free(contents); } node = g_list_next (node); @@ -376,13 +374,12 @@ */ if (pre_process != NULL) { - int ret; command = g_strdup_printf("%s %s | grep -v -E '^\s*(G_BEGIN_DECLS|G_END_DECLS)\s*$' > %s", pre_process, temp_file, temp_file2); #ifdef TM_DEBUG g_message("Executing: %s", command); #endif - ret = system(command); + system(command); g_free(command); g_unlink(temp_file); g_free(temp_file);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.