aboutsummaryrefslogtreecommitdiffstats
path: root/lib/completion.js
diff options
context:
space:
mode:
authorPhil Crosby2012-05-05 15:00:09 -0700
committerPhil Crosby2012-05-05 18:32:13 -0700
commit8bbdcd53d87f3504853405d6e20c11759666e487 (patch)
treebeed29f2fce2713d1d4b2c7a4056d5ef1fb3a5e8 /lib/completion.js
parentce46b9486e1842fe9002b9dcd04afbe06bdedd57 (diff)
downloadvimium-8bbdcd53d87f3504853405d6e20c11759666e487.tar.bz2
Move backgroundCompleter into fuzzymode.js
This is the first step in an attempt to split background js from frontend.
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,
};