     @colorIndex  = -1
     @statusBarManager?.clear()
 
-  refreshEditor: (editor) ->
-    @clearEditor editor
-    @renderEditor editor
-
-  renderEditor: (editor) ->
-    scanRange = getVisibleBufferRange(editor)
-
-    decorations = []
-    for keyword, color of @keyword2color
-      pattern = ///#{_.escapeRegExp(keyword)}///g
-      editor.scanInBufferRange pattern, scanRange, ({range}) =>
-        decorations.push @decorate(editor, range, color)
-
-    @editors.set(editor, decorations)
-
-  clearEditor: (editor) ->
-    if decorations = @editors.get(editor)
-      d.getMarker().destroy() for d in decorations
-      @editors.delete(editor)
-
   getCountForKeyword: (editor, keyword) ->
     count = 0
     editor.scan ///#{_.escapeRegExp(keyword)}///g, -> count++
     count
-
-  decorate: (editor, range, color) ->
-    marker = editor.markBufferRange range,
-      invalidate: 'inside'
-      persistent: false
-
-    editor.decorateMarker marker,
-      type: 'highlight'
-      class: "quick-highlight #{@decorationPreference}-#{color}"
 
   consumeStatusBar: (statusBar) ->
     return unless @statusBarManager?

    @refreshEditor(e) for e in getVisibleEditor()
    editor.setCursorBufferPosition point

  clear: ->
    @editors.forEach (decorations, editor) =>
      @clearEditor editor

      'quick-highlight:toggle': => @toggle()
      'quick-highlight:clear':  => @clear()

    subs.add atom.workspace.observeTextEditors (editor) =>
      subs.add editor.onDidStopChanging =>
        return unless getEditor() is editor
