From 0a5f3cc10d5c70aa79adb224cf324ca4b7f58702 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 28 Feb 2016 14:50:44 +0000 Subject: Remove some legacy (and unused) code. --- content_scripts/ui_component.coffee | 5 ----- content_scripts/vimium_frontend.coffee | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee index 74b58b82..efc16f99 100644 --- a/content_scripts/ui_component.coffee +++ b/content_scripts/ui_component.coffee @@ -102,11 +102,6 @@ class UIComponent message: name: "focusFrame" frameId: sourceFrameId - highlight: false - # Note(smblott) Disabled prior to 1.50 (or post 1.49) release. - # The UX around flashing the frame isn't quite right yet. We want the frame to flash only if the - # user exits the Vomnibar with Escape. - highlightOnlyIfNotTop: false # true if windowIsFocused() # We already have the focus. diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 63f6ee44..aab92a85 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -300,9 +300,7 @@ focusThisFrame = (request) -> chrome.runtime.sendMessage({ handler: "nextFrame", frameId: frameId }) return window.focus() - shouldHighlight = request.highlight - shouldHighlight ||= request.highlightOnlyIfNotTop and not DomUtils.isTopFrame() - flashFrame() if shouldHighlight + flashFrame() if request.highlight extend window, scrollToBottom: -> -- cgit v1.2.3