[gitg] Remove unused state monitoring



commit 4a8c1fa02cc44939a8e80da0379c683762eea39c
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Dec 20 18:41:45 2015 +0100

    Remove unused state monitoring

 libgitg/gitg-diff-view-file-selectable.vala |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-file-selectable.vala b/libgitg/gitg-diff-view-file-selectable.vala
index 76b2c50..14e5d6e 100644
--- a/libgitg/gitg-diff-view-file-selectable.vala
+++ b/libgitg/gitg-diff-view-file-selectable.vala
@@ -56,8 +56,6 @@ class Gitg.DiffViewFileSelectable : Object
                source_view.button_press_event.connect(button_press_event_on_view);
                source_view.motion_notify_event.connect(motion_notify_event_on_view);
                source_view.button_release_event.connect(button_release_event_on_view);
-               source_view.key_press_event.connect(key_press_event_on_view);
-               source_view.key_release_event.connect(key_release_event_on_view);
 
                source_view.get_style_context().add_class("handle-selection");
 
@@ -495,20 +493,6 @@ class Gitg.DiffViewFileSelectable : Object
 
                return true;
        }
-
-       private bool key_press_event_on_view(Gdk.EventKey event)
-       {
-               stdout.printf(@"press: $(event.state)\n");
-               update_cursor_for_state(event.state);
-               return false;
-       }
-
-       private bool key_release_event_on_view(Gdk.EventKey event)
-       {
-               stdout.printf(@"release: $(event.state)\n");
-               update_cursor_for_state(event.state);
-               return false;
-       }
 }
 
 // ex:ts=4 noet


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