aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/console.js44
-rw-r--r--src/actions/index.js8
2 files changed, 0 insertions, 52 deletions
diff --git a/src/actions/console.js b/src/actions/console.js
deleted file mode 100644
index 4183489..0000000
--- a/src/actions/console.js
+++ /dev/null
@@ -1,44 +0,0 @@
-import actions from 'actions';
-
-const showCommand = (text) => {
- return {
- type: actions.CONSOLE_SHOW_COMMAND,
- text: text
- };
-};
-
-const showError = (text) => {
- return {
- type: actions.CONSOLE_SHOW_ERROR,
- text: text
- };
-};
-
-const hide = () => {
- return {
- type: actions.CONSOLE_HIDE
- };
-};
-
-const setCompletions = (completions) => {
- return {
- type: actions.CONSOLE_SET_COMPLETIONS,
- completions: completions
- };
-};
-
-const completionNext = () => {
- return {
- type: actions.CONSOLE_COMPLETION_NEXT,
- };
-};
-
-const completionPrev = () => {
- return {
- type: actions.CONSOLE_COMPLETION_PREV,
- };
-};
-
-export {
- showCommand, showError, hide, setCompletions, completionNext, completionPrev
-};
diff --git a/src/actions/index.js b/src/actions/index.js
index 6a64795..0b3749d 100644
--- a/src/actions/index.js
+++ b/src/actions/index.js
@@ -1,12 +1,4 @@
export default {
- // console commands
- CONSOLE_SHOW_COMMAND: 'console.show.command',
- CONSOLE_SET_COMPLETIONS: 'console.set.completions',
- CONSOLE_SHOW_ERROR: 'console.show.error',
- CONSOLE_HIDE: 'console.hide',
- CONSOLE_COMPLETION_NEXT: 'console.completion.next',
- CONSOLE_COMPLETION_PREV: 'console.completion.prev',
-
// User input
INPUT_KEY_PRESS: 'input.key,press',
INPUT_CLEAR_KEYS: 'input.clear.keys',