Remove unused context variable

This commit is contained in:
Max Brunsfeld 2021-12-27 15:34:07 -08:00
parent cbd9e186b5
commit f5d4e26799
2 changed files with 4 additions and 1 deletions

View File

@ -1161,7 +1161,6 @@ impl MutableAppContext {
keystroke: &Keystroke, keystroke: &Keystroke,
) -> Result<bool> { ) -> Result<bool> {
let mut context_chain = Vec::new(); let mut context_chain = Vec::new();
let mut context = keymap::Context::default();
for view_id in &responder_chain { for view_id in &responder_chain {
if let Some(view) = self.cx.views.get(&(window_id, *view_id)) { if let Some(view) = self.cx.views.get(&(window_id, *view_id)) {
context_chain.push(view.keymap_context(self.as_ref())); context_chain.push(view.keymap_context(self.as_ref()));

4
test.md Normal file
View File

@ -0,0 +1,4 @@
one
* twooas