From d555fd7883bfe1932d5dfff8309b6dacae62d362 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 13 Feb 2014 22:32:48 +0100 Subject: [PATCH] ShellApp: remove impossible check The action muxer is created and destroyed with the running state, it can never be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=722554 --- src/shell-app.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shell-app.c b/src/shell-app.c index aed49f01e..e2f3c713f 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -611,9 +611,7 @@ shell_app_update_window_actions (ShellApp *app, MetaWindow *window) g_object_set_data_full (G_OBJECT (window), "actions", actions, g_object_unref); } - if (!app->running_state->muxer) - app->running_state->muxer = gtk_action_muxer_new (); - + g_assert (app->running_state->muxer); gtk_action_muxer_insert (app->running_state->muxer, "win", actions); g_object_notify (G_OBJECT (app), "action-group"); }