aboutsummaryrefslogtreecommitdiffstats
path: root/lib/completion.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/completion.js')
-rw-r--r--lib/completion.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/completion.js b/lib/completion.js
index cd78a213..9eb003ca 100644
--- a/lib/completion.js
+++ b/lib/completion.js
@@ -253,29 +253,6 @@ var completion = (function() {
}
});
- /** Get completion results from the background page */
- var BackgroundCompleter = Class.extend({
- init: function(name) {
- this.name = name;
- this.filterPort = chrome.extension.connect({ name: "filterCompleter" });
- },
-
- refresh: function() { chrome.extension.sendRequest({ handler: "refreshCompleter", name: this.name }); },
-
- filter: function(query, maxResults, callback) {
- var id = utils.createUniqueId();
- this.filterPort.onMessage.addListener(function(msg) {
- if (msg.id != id) return;
- callback(msg.results.map(function(result) {
- var action = result.action;
- result.action = eval(action.func).apply(null, action.args);
- return result;
- }));
- });
- this.filterPort.postMessage({ id: id, name: this.name, query: query, maxResults: maxResults });
- }
- });
-
/** A meta-completer that delegates queries and merges and sorts the results of a collection of other
* completer instances given in :sources. The optional argument :queryThreshold determines how long a
* query has to be to trigger a search. */
@@ -621,7 +598,6 @@ var completion = (function() {
SmartCompletionSource: SmartCompletionSource,
DomainCompletionSource: DomainCompletionSource,
MultiCompleter: MultiCompleter,
- BackgroundCompleter: BackgroundCompleter,
createActionOpenUrl: createActionOpenUrl,
createActionSwitchToTab: createActionSwitchToTab,
};