[gnome-settings-daemon] media-keys: Remove impossible code path
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Remove impossible code path
- Date: Wed, 2 Nov 2011 20:12:41 +0000 (UTC)
commit 99709f8594bf856e08a3d5b73ceb71849f6505d4
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 1 18:02:29 2011 +0000
media-keys: Remove impossible code path
We already check for !NULL earlier in the loop.
plugins/media-keys/gsd-media-keys-manager.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index ca5f11f..8cf52a4 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -344,9 +344,6 @@ update_kbd_cb (GSettings *settings,
g_free (keys[i].key);
keys[i].key = NULL;
- /* We can't have a change in a hard-coded key */
- g_assert (keys[i].settings_key != NULL);
-
tmp = g_settings_get_string (manager->priv->settings, keys[i].settings_key);
if (is_valid_shortcut (tmp) == FALSE) {
g_free (tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]