@@ -44,8 +44,6 @@ public class App : IDisposable
44
44
private readonly IDictionary < VBProjectsEventsSink , Tuple < IConnectionPoint , int > > _referencesEventsConnectionPoints =
45
45
new Dictionary < VBProjectsEventsSink , Tuple < IConnectionPoint , int > > ( ) ;
46
46
47
- private readonly IDictionary < Type , Action > _hookActions ;
48
-
49
47
public App ( VBE vbe , IMessageBox messageBox ,
50
48
IRubberduckParser parser ,
51
49
IGeneralConfigService configService ,
@@ -84,13 +82,6 @@ public App(VBE vbe, IMessageBox messageBox,
84
82
85
83
_projectsEventsConnectionPoint . Advise ( sink , out _projectsEventsCookie ) ;
86
84
87
- _hookActions = new Dictionary < Type , Action >
88
- {
89
- { typeof ( MouseHook ) , HandleMouseMessage } ,
90
- { typeof ( KeyboardHook ) , HandleKeyboardMessage } ,
91
- } ;
92
-
93
-
94
85
UiDispatcher . Initialize ( ) ;
95
86
}
96
87
@@ -107,21 +98,6 @@ private void State_StatusMessageUpdate(object sender, RubberduckStatusMessageEve
107
98
}
108
99
109
100
private void _hooks_MessageReceived ( object sender , HookEventArgs e )
110
- {
111
- var hookType = sender . GetType ( ) ;
112
- Action action ;
113
- if ( _hookActions . TryGetValue ( hookType , out action ) )
114
- {
115
- action . Invoke ( ) ;
116
- }
117
- }
118
-
119
- private void HandleMouseMessage ( )
120
- {
121
- RefreshSelection ( ) ;
122
- }
123
-
124
- private void HandleKeyboardMessage ( )
125
101
{
126
102
RefreshSelection ( ) ;
127
103
}
0 commit comments