From 222d3dd6491bca8f152382fb84e2d43c499b8951 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 17 May 2015 11:34:37 +0100 Subject: TabToOpen: more tidy up pre-PR. --- background_scripts/completion.coffee | 4 ---- lib/utils.coffee | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 0f8f24f5..cc1ada5b 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -25,9 +25,6 @@ class Suggestion # If @autoSelect is truthy, then this suggestion is automatically pre-selected in the vomnibar. There may # be at most one such suggestion. @autoSelect = false - # If truthy (and @autoSelect is truthy too), then this suggestion is always pre-selected when the query - # changes. There may be at most one such suggestion. - @forceAutoSelect = false # If @highlightTerms is true, then we highlight matched terms in the title and URL. @highlightTerms = true # If @insertText is a string, then the indicated text is inserted into the vomnibar input when the @@ -226,7 +223,6 @@ class HistoryCompleter @currentSearch = { queryTerms: @queryTerms, onComplete: @onComplete } results = [] HistoryCache.use (history) => - searchUrl = Settings.get "searchUrl" results = if queryTerms.length > 0 history.filter (entry) -> RankingUtils.matches(queryTerms, entry.url, entry.title) diff --git a/lib/utils.coffee b/lib/utils.coffee index 724250e0..63b8ba0e 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -114,7 +114,7 @@ Utils = searchUrl += "%s" unless 0 <= searchUrl.indexOf "%s" searchUrl.replace /%s/g, @createSearchQuery query - # Extract a query from url if it appears to be a URL created generated from the given search URL. + # Extract a query from url if it appears to be a URL created from the given search URL. # For example, map "https://www.google.ie/search?q=star+wars&foo&bar" to "star wars". extractQuery: do => queryTerminator = new RegExp "[?&#/]" -- cgit v1.2.3