 class BackgroundCompleter
   debug: true
 
-  # name is background-page completer to connect to: "omni", "tabs", or "bookmarks".
+  # The "name" is the background-page completer to connect to: "omni", "tabs", or "bookmarks".
   constructor: (@name) ->
     @port = chrome.runtime.connect name: "completions"
     @messageId = null
-    # @keywords and @cache are both reset in @reset().
-    # We only cache for the duration of a single vomnibar activation.
-    @keywords = []
-    @cache = {}
     @reset()
 
     @port.onMessage.addListener (msg) =>

        if @suppressedLeadingKeyword?
          # This is a custom search engine completion.  Because of the way we add and highlight the text
          # common to all completions in the input (selectCommonMatches), the text in the input might not
          # correspond to any of the completions.  So we fire the query off to the background page and use the
          # completion at the top of the list (which will be the right one).
          @update true, =>
            if @completions[0]

      @input.value

  # Return the background-page query corresponding to the current input state.  In other words, reinstate any
  # search engine keyword which is currently stripped from the input, and strip any selection.
  getInputValueAsQuery: ->
    (if @suppressedLeadingKeyword? then @suppressedLeadingKeyword + " " else "") + @getInputWithoutSelectionRange()

