diff options
author | rbuj <[email protected]> | 2019-02-27 19:01:04 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-04-09 18:48:55 +0000 |
commit | 532a8d3e9794c9bc0f639b40f98eed0049b70757 (patch) | |
tree | 4a313ea8502e0bc631f609f17bd412d197075367 /logview | |
parent | d4d96862c962266bc33a21f1fa64e97c42df4e62 (diff) | |
download | mate-utils-532a8d3e9794c9bc0f639b40f98eed0049b70757.tar.bz2 mate-utils-532a8d3e9794c9bc0f639b40f98eed0049b70757.tar.xz |
Improve performance by removing unused assignments
Diffstat (limited to 'logview')
-rw-r--r-- | logview/src/logview-filter-manager.c | 4 | ||||
-rw-r--r-- | logview/src/logview-log.c | 1 | ||||
-rw-r--r-- | logview/src/logview-window.c | 2 |
3 files changed, 1 insertions, 6 deletions
diff --git a/logview/src/logview-filter-manager.c b/logview/src/logview-filter-manager.c index 44a21550..c4c5057b 100644 --- a/logview/src/logview-filter-manager.c +++ b/logview/src/logview-filter-manager.c @@ -170,7 +170,7 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id, LogviewFilterManager *manager) { GtkWidget *entry_name, *entry_regex; - GtkWidget *radio_color, *radio_visible; + GtkWidget *radio_color; GtkWidget *check_foreground, *check_background; GtkWidget *color_foreground, *color_background; gchar *old_name; @@ -189,8 +189,6 @@ on_dialog_add_edit_reponse (GtkWidget *dialog, int response_id, "entry_regex")); radio_color = GTK_WIDGET (gtk_builder_get_object (builder, "radio_color")); - radio_visible = GTK_WIDGET (gtk_builder_get_object (builder, - "radio_visible")); check_foreground = GTK_WIDGET (gtk_builder_get_object (builder, "check_foreground")); check_background = GTK_WIDGET (gtk_builder_get_object (builder, diff --git a/logview/src/logview-log.c b/logview/src/logview-log.c index 407f49c3..272fb463 100644 --- a/logview/src/logview-log.c +++ b/logview/src/logview-log.c @@ -309,7 +309,6 @@ do_read_new_lines (GIOSchedulerJob *io_job, log->priv->has_new_lines = FALSE; /* we'll return only the new lines in the callback */ - line = g_ptr_array_index (lines, log->priv->lines_no); job->lines = (const char **) lines->pdata + log->priv->lines_no; /* save the new number of days and lines */ diff --git a/logview/src/logview-window.c b/logview/src/logview-window.c index b7120812..602c3572 100644 --- a/logview/src/logview-window.c +++ b/logview/src/logview-window.c @@ -663,7 +663,6 @@ update_filter_menu (LogviewWindow *window) GList *actions, *l; guint id; GList *filters; - GtkTextBuffer *buffer; GtkTextTagTable *table; GtkTextTag *tag; GtkToggleAction *action; @@ -674,7 +673,6 @@ update_filter_menu (LogviewWindow *window) g_return_if_fail (priv->filter_action_group != NULL); - buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->text_view)); table = priv->tag_table; if (priv->filter_merge_id != 0) { |