[libdazzle] shortcut manager: remove not used accel var



commit cc2e938ed284f0680c304ee196fbf63236ea8582
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Mon Aug 14 22:29:59 2017 +0200

    shortcut manager: remove not used accel var
    
    We don't need that, we get the string from the chord
    directly in the create_shortcut function.

 src/shortcuts/dzl-shortcut-manager.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-manager.c b/src/shortcuts/dzl-shortcut-manager.c
index b8cb407..589cf85 100644
--- a/src/shortcuts/dzl-shortcut-manager.c
+++ b/src/shortcuts/dzl-shortcut-manager.c
@@ -1326,7 +1326,6 @@ dzl_shortcut_manager_add_shortcuts_to_window (DzlShortcutManager *self,
             {
               DzlShortcutNodeData *data = iter->data;
               const DzlShortcutChord *chord = NULL;
-              g_autofree gchar *accel = NULL;
               DzlShortcutsShortcut *shortcut;
 
               if (data->type == DZL_SHORTCUT_NODE_ACTION)
@@ -1334,8 +1333,6 @@ dzl_shortcut_manager_add_shortcuts_to_window (DzlShortcutManager *self,
               else if (data->type == DZL_SHORTCUT_NODE_COMMAND)
                 chord = dzl_shortcut_theme_get_chord_for_command (theme, data->name);
 
-              accel = dzl_shortcut_chord_to_string (chord);
-
               shortcut = create_shortcut (chord, data->title, data->subtitle);
               gtk_container_add (GTK_CONTAINER (group), GTK_WIDGET (shortcut));
             }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]