aboutsummaryrefslogtreecommitdiff
path: root/src/background/infrastructures/ContentMessageListener.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/infrastructures/ContentMessageListener.ts')
-rw-r--r--src/background/infrastructures/ContentMessageListener.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/background/infrastructures/ContentMessageListener.ts b/src/background/infrastructures/ContentMessageListener.ts
index 92481da..2fbb9cf 100644
--- a/src/background/infrastructures/ContentMessageListener.ts
+++ b/src/background/infrastructures/ContentMessageListener.ts
@@ -1,7 +1,6 @@
import { injectable } from 'tsyringe';
import * as messages from '../../shared/messages';
import * as operations from '../../shared/operations';
-import CompletionGroup from '../domains/CompletionGroup';
import CommandController from '../controllers/CommandController';
import SettingController from '../controllers/SettingController';
import FindController from '../controllers/FindController';
@@ -63,8 +62,6 @@ export default class ContentMessageListener {
message: messages.Message, senderTab: browser.tabs.Tab,
): Promise<any> | any {
switch (message.type) {
- case messages.CONSOLE_QUERY_COMPLETIONS:
- return this.onConsoleQueryCompletions(message.text);
case messages.CONSOLE_GET_COMPLETION_TYPES:
return this.completionController.getCompletionTypes();
case messages.CONSOLE_REQUEST_SEARCH_ENGINES_MESSAGE:
@@ -107,11 +104,6 @@ export default class ContentMessageListener {
throw new Error('unsupported message: ' + message.type);
}
- async onConsoleQueryCompletions(line: string): Promise<CompletionGroup[]> {
- const completions = await this.commandController.getCompletions(line);
- return Promise.resolve(completions);
- }
-
onConsoleEnterCommand(text: string): Promise<any> {
return this.commandController.exec(text);
}