aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/mark.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/actions/mark.ts')
-rw-r--r--src/content/actions/mark.ts31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/content/actions/mark.ts b/src/content/actions/mark.ts
index 5eb9554..1068507 100644
--- a/src/content/actions/mark.ts
+++ b/src/content/actions/mark.ts
@@ -1,5 +1,4 @@
import * as actions from './index';
-import * as messages from '../../shared/messages';
const startSet = (): actions.MarkAction => {
return { type: actions.MARK_START_SET };
@@ -13,34 +12,6 @@ const cancel = (): actions.MarkAction => {
return { type: actions.MARK_CANCEL };
};
-const setLocal = (key: string, x: number, y: number): actions.MarkAction => {
- return {
- type: actions.MARK_SET_LOCAL,
- key,
- x,
- y,
- };
-};
-
-const setGlobal = (key: string, x: number, y: number): actions.MarkAction => {
- browser.runtime.sendMessage({
- type: messages.MARK_SET_GLOBAL,
- key,
- x,
- y,
- });
- return { type: actions.NOOP };
-};
-
-const jumpGlobal = (key: string): actions.MarkAction => {
- browser.runtime.sendMessage({
- type: messages.MARK_JUMP_GLOBAL,
- key,
- });
- return { type: actions.NOOP };
-};
-
export {
- startSet, startJump, cancel, setLocal,
- setGlobal, jumpGlobal,
+ startSet, startJump, cancel,
};