aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2016-03-03 13:24:15 +0000
committerStephen Blott2016-03-03 13:24:15 +0000
commit7f0fccf363ce887d8d9b1b92494ab94547931150 (patch)
treeacb7880ce8f5a12ebe7c9c16ce6fd4241bb63ca4
parentaddceafab244b174aba89718d81f6bcb4cea22ff (diff)
downloadvimium-7f0fccf363ce887d8d9b1b92494ab94547931150.tar.bz2
Remove methods which aren't used.
-rw-r--r--content_scripts/mode.coffee6
-rw-r--r--lib/dom_utils.coffee5
2 files changed, 0 insertions, 11 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index 5cc8800e..782328ce 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -213,12 +213,6 @@ class Mode
DomUtils.suppressPropagation event
@stopBubblingAndFalse
- # Activate a new instance of this mode, together with all of its original options (except its main
- # keybaord-event handlers; these will be recreated).
- cloneMode: ->
- delete @options[key] for key in [ "keydown", "keypress", "keyup" ]
- new @constructor @options
-
# Debugging routines.
logModes: ->
if @debug
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 553287af..aab0a4df 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -290,11 +290,6 @@ DomUtils =
@remove()
false
- simulateTextEntry: (element, text) ->
- event = document.createEvent "TextEvent"
- event.initTextEvent "textInput", true, true, null, text
- element.dispatchEvent event
-
# Adapted from: http://roysharon.com/blog/37.
# This finds the element containing the selection focus.
getElementWithFocus: (selection, backwards) ->