summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-05-03 12:08:36 +0200
committerraveit65 <[email protected]>2019-05-07 16:56:56 +0200
commit8ef9f0668c383b117b7f2ae6ddacb7dd38c1a543 (patch)
tree63bc1d22c67fe6109ff5204374929e20c5bc1374
parentd0a3797e331007434a42a3e9d753d1904ed9cf3a (diff)
downloadmate-utils-8ef9f0668c383b117b7f2ae6ddacb7dd38c1a543.tar.bz2
mate-utils-8ef9f0668c383b117b7f2ae6ddacb7dd38c1a543.tar.xz
Remove unused variables
-rw-r--r--baobab/src/baobab.c3
-rw-r--r--logview/src/logview-log.c2
-rw-r--r--mate-dictionary/src/gdict-pref-dialog.c2
-rw-r--r--mate-dictionary/src/gdict-window.c9
-rw-r--r--mate-screenshot/src/screenshot-utils.c1
5 files changed, 3 insertions, 14 deletions
diff --git a/baobab/src/baobab.c b/baobab/src/baobab.c
index 33ef384e..36de4256 100644
--- a/baobab/src/baobab.c
+++ b/baobab/src/baobab.c
@@ -646,7 +646,6 @@ baobab_create_toolbar (void)
GtkWidget *toolbar;
GtkToolItem *item;
GtkToolItem *separator;
- gboolean visible;
toolbar = GTK_WIDGET (gtk_builder_get_object (baobab.main_ui, "toolbar1"));
if (toolbar == NULL) {
@@ -686,8 +685,6 @@ baobab_create_toolbar (void)
static void
baobab_create_statusbar (void)
{
- gboolean visible;
-
baobab.statusbar = GTK_WIDGET (gtk_builder_get_object (baobab.main_ui,
"statusbar1"));
if (baobab.statusbar == NULL) {
diff --git a/logview/src/logview-log.c b/logview/src/logview-log.c
index 2bd0224c..c41889a2 100644
--- a/logview/src/logview-log.c
+++ b/logview/src/logview-log.c
@@ -377,7 +377,6 @@ static gboolean
read_gzip_header (GInputStream *is,
time_t *modification_time)
{
- gboolean res;
guchar buffer[GZIP_HEADER_SIZE];
gssize bytes, to_skip;
guint mode;
@@ -494,7 +493,6 @@ static gboolean
fill_buffer (GZHandle *gz,
gsize num_bytes)
{
- gboolean res;
gsize count;
z_stream * zstream = &gz->zstream;
diff --git a/mate-dictionary/src/gdict-pref-dialog.c b/mate-dictionary/src/gdict-pref-dialog.c
index 5975c686..d6dbcab2 100644
--- a/mate-dictionary/src/gdict-pref-dialog.c
+++ b/mate-dictionary/src/gdict-pref-dialog.c
@@ -408,7 +408,7 @@ source_edit_clicked_cb (GtkButton *button,
GtkTreeModel *model;
GtkTreeIter iter;
gboolean is_selected;
- gchar *name, *description;
+ gchar *name;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (dialog->sources_view));
if (!selection)
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index b5e371fd..7921537c 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -851,8 +851,6 @@ gdict_window_load_state (GdictWindow *window)
{
gchar *state_file;
GKeyFile *state_key;
- gchar *data;
- gsize data_len;
GError *error;
state_file = g_build_filename (g_get_user_config_dir (),
@@ -1628,7 +1626,6 @@ gdict_window_constructor (GType type,
{
GObject *object;
GdictWindow *window;
- gboolean is_maximized;
GtkWidget *hbox;
GtkWidget *handle;
GtkWidget *frame1, *frame2;
@@ -1637,12 +1634,10 @@ gdict_window_constructor (GType type,
GtkActionGroup *action_group;
GtkAccelGroup *accel_group;
PangoFontDescription *font_desc;
- gchar *font_name, *sidebar_page;
+ gchar *font_name;
GError *error;
- gboolean sidebar_visible;
- gboolean statusbar_visible;
GtkAllocation allocation;
-
+
object = G_OBJECT_CLASS (gdict_window_parent_class)->constructor (type, n_construct_properties, construct_params);
window = GDICT_WINDOW (object);
diff --git a/mate-screenshot/src/screenshot-utils.c b/mate-screenshot/src/screenshot-utils.c
index 03c9bcac..88095710 100644
--- a/mate-screenshot/src/screenshot-utils.c
+++ b/mate-screenshot/src/screenshot-utils.c
@@ -389,7 +389,6 @@ screenshot_select_area_async (SelectAreaCallback callback)
GdkSeat *seat;
GdkGrabStatus res;
select_area_filter_data data;
- GdkRectangle *rectangle;
CallbackData *cb_data;
data.rect.x = 0;