From 5176643e64d8f4a6be5fc73f0eb48dc65322e496 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 29 Mar 2020 21:59:25 +0900 Subject: Clean unused code --- src/console/actions/console.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/console/actions') diff --git a/src/console/actions/console.ts b/src/console/actions/console.ts index b17754d..e44c974 100644 --- a/src/console/actions/console.ts +++ b/src/console/actions/console.ts @@ -232,18 +232,6 @@ const getPropertyCompletions = async( } }; -const getCompletions = async(text: string): Promise => { - const completions = await browser.runtime.sendMessage({ - type: messages.CONSOLE_QUERY_COMPLETIONS, - text, - }); - return { - type: actions.CONSOLE_SET_COMPLETIONS, - completions, - completionSource: text, - }; -}; - const completionNext = (): actions.CompletionNextAction => { return { type: actions.CONSOLE_COMPLETION_NEXT, @@ -258,6 +246,6 @@ const completionPrev = (): actions.CompletionPrevAction => { export { hide, showCommand, showFind, showError, showInfo, hideCommand, setConsoleText, enterCommand, enterFind, - getCompletions, getCommandCompletions, getOpenCompletions, getTabCompletions, getPropertyCompletions, + getCommandCompletions, getOpenCompletions, getTabCompletions, getPropertyCompletions, completionNext, completionPrev, }; -- cgit v1.2.3