From d46ceead042ff8978af4e03a58b86f306d7fca7c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 10 Sep 2013 16:00:49 -0400 Subject: [PATCH] Fix simple, unused variable warnings --- src/gnome-shell-plugin.c | 1 - src/shell-app.c | 2 -- src/st/st-box-layout.c | 2 -- src/st/st-im-text.c | 1 - src/st/st-scroll-view-fade.c | 1 - 5 files changed, 7 deletions(-) diff --git a/src/gnome-shell-plugin.c b/src/gnome-shell-plugin.c index dbbc967e4..631e37323 100644 --- a/src/gnome-shell-plugin.c +++ b/src/gnome-shell-plugin.c @@ -324,7 +324,6 @@ static gboolean gnome_shell_plugin_xevent_filter (MetaPlugin *plugin, XEvent *xev) { - MetaScreen *screen = meta_plugin_get_screen (plugin); GnomeShellPlugin *shell_plugin = GNOME_SHELL_PLUGIN (plugin); #ifdef GLX_INTEL_swap_event diff --git a/src/shell-app.c b/src/shell-app.c index cbf40ca3c..0218c133c 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -829,8 +829,6 @@ int shell_app_compare (ShellApp *app, ShellApp *other) { - gboolean vis_app, vis_other; - if (app->state != other->state) { if (app->state == SHELL_APP_STATE_RUNNING) diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c index 628181918..91e93a568 100644 --- a/src/st/st-box-layout.c +++ b/src/st/st-box-layout.c @@ -189,7 +189,6 @@ st_box_layout_get_property (GObject *object, GValue *value, GParamSpec *pspec) { - StBoxLayoutPrivate *priv = ST_BOX_LAYOUT (object)->priv; ClutterLayoutManager *layout; StAdjustment *adjustment; ClutterOrientation orientation; @@ -531,7 +530,6 @@ st_box_layout_get_paint_volume (ClutterActor *actor, static void st_box_layout_style_changed (StWidget *self) { - StBoxLayoutPrivate *priv = ST_BOX_LAYOUT (self)->priv; StThemeNode *theme_node = st_widget_get_theme_node (self); ClutterBoxLayout *layout; double spacing; diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c index ff110f140..624a0674c 100644 --- a/src/st/st-im-text.c +++ b/src/st/st-im-text.c @@ -287,7 +287,6 @@ key_is_modifier (guint16 keyval) static GdkEventKey * key_event_to_gdk (ClutterKeyEvent *event_clutter) { - GdkDisplay *display = gdk_display_get_default (); GdkEventKey *event_gdk; event_gdk = (GdkEventKey *)gdk_event_new ((event_clutter->type == CLUTTER_KEY_PRESS) ? GDK_KEY_PRESS : GDK_KEY_RELEASE); diff --git a/src/st/st-scroll-view-fade.c b/src/st/st-scroll-view-fade.c index 71ad3ce8f..3c0c26bce 100644 --- a/src/st/st-scroll-view-fade.c +++ b/src/st/st-scroll-view-fade.c @@ -96,7 +96,6 @@ st_scroll_view_fade_paint_target (ClutterOffscreenEffect *effect) StScrollViewFade *self = ST_SCROLL_VIEW_FADE (effect); ClutterShaderEffect *shader = CLUTTER_SHADER_EFFECT (effect); ClutterOffscreenEffectClass *parent; - CoglHandle material; gdouble value, lower, upper, page_size; ClutterActor *vscroll = st_scroll_view_get_vscroll_bar (ST_SCROLL_VIEW (self->actor));