aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-06-01 09:46:41 +0100
committerStephen Blott2015-06-01 09:46:43 +0100
commite8476682362b9648aba874e8581fe9076479f734 (patch)
treee24917189c082881554bf077b25f7e81cf79b930
parentc62ffa33ad5230b89f44cb8f3268e6a4e48afd52 (diff)
downloadvimium-e8476682362b9648aba874e8581fe9076479f734.tar.bz2
Remove LinkHints.init()...
LinkHints.init() isn't doing anything.
-rw-r--r--content_scripts/link_hints.coffee5
-rw-r--r--content_scripts/vimium_frontend.coffee2
-rw-r--r--tests/dom_tests/dom_tests.coffee2
3 files changed, 0 insertions, 9 deletions
diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee
index 0ea40bd3..2bcc7508 100644
--- a/content_scripts/link_hints.coffee
+++ b/content_scripts/link_hints.coffee
@@ -35,11 +35,6 @@ LinkHints =
# Call this function on exit (if defined).
onExit: null
- #
- # To be called after linkHints has been generated from linkHintsBase.
- #
- init: ->
-
# We need this as a top-level function because our command system doesn't yet support arguments.
activateModeToOpenInNewTab: -> @activateMode(OPEN_IN_NEW_BG_TAB)
activateModeToOpenInNewForegroundTab: -> @activateMode(OPEN_IN_NEW_FG_TAB)
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index bb1e971f..8000a9ec 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -126,8 +126,6 @@ window.initializeModes = ->
# Complete initialization work that sould be done prior to DOMReady.
#
initializePreDomReady = ->
- Settings.use "theKeyHereDoesNotMatter", LinkHints.init.bind LinkHints
-
initializeModes()
checkIfEnabledForUrl()
refreshCompletionKeys()
diff --git a/tests/dom_tests/dom_tests.coffee b/tests/dom_tests/dom_tests.coffee
index e57f3eab..8f293075 100644
--- a/tests/dom_tests/dom_tests.coffee
+++ b/tests/dom_tests/dom_tests.coffee
@@ -142,7 +142,6 @@ context "Alphabetical link hints",
# Three hints will trigger double hint chars.
createLinks 3
- LinkHints.init()
LinkHints.activateMode()
tearDown ->
@@ -178,7 +177,6 @@ context "Filtered link hints",
initializeModeState()
testContent = "<a>test</a>" + "<a>tress</a>" + "<a>trait</a>" + "<a>track<img alt='alt text'/></a>"
document.getElementById("test-div").innerHTML = testContent
- LinkHints.init()
LinkHints.activateMode()
tearDown ->