From cef1934a817af4d2512f4c411855f390cdce264f Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Wed, 9 Sep 2020 17:10:42 +0200 Subject: [PATCH] fix: remove unused values --- app/assets/javascripts/views/notes/notes_view.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/views/notes/notes_view.ts b/app/assets/javascripts/views/notes/notes_view.ts index 06553c625..5556e76dc 100644 --- a/app/assets/javascripts/views/notes/notes_view.ts +++ b/app/assets/javascripts/views/notes/notes_view.ts @@ -1,6 +1,4 @@ -import { Editor } from '@/ui_models/editor'; import { PanelPuppet, WebDirective } from './../../types'; -import angular from 'angular'; import template from './notes-view.pug'; import { ApplicationEvent, @@ -72,7 +70,6 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { private previousNoteKeyObserver: any private searchKeyObserver: any private noteFlags: Partial> = {} - private unsubEditorChange: any private removeObservers: Array<() => void> = []; /* @ngInject */ @@ -747,7 +744,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { document.body, this.getSearchBar() ], - onKeyDown: (event) => { + onKeyDown: () => { const searchBar = this.getSearchBar(); if (searchBar === document.activeElement) { searchBar.blur(); @@ -759,7 +756,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { this.previousNoteKeyObserver = this.application!.getKeyboardService().addKeyObserver({ key: KeyboardKey.Up, element: document.body, - onKeyDown: (event) => { + onKeyDown: () => { this.selectPreviousNote(); } }); @@ -770,7 +767,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> { KeyboardModifier.Meta, KeyboardModifier.Shift ], - onKeyDown: (event) => { + onKeyDown: () => { const searchBar = this.getSearchBar(); if (searchBar) { searchBar.focus(); }; }