aboutsummaryrefslogtreecommitdiff
path: root/src/content/components/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/components/common')
-rw-r--r--src/content/components/common/follow.js3
-rw-r--r--src/content/components/common/index.js9
-rw-r--r--src/content/components/common/input.js3
-rw-r--r--src/content/components/common/keymapper.js3
4 files changed, 0 insertions, 18 deletions
diff --git a/src/content/components/common/follow.js b/src/content/components/common/follow.js
index 4eeaaa2..19c31eb 100644
--- a/src/content/components/common/follow.js
+++ b/src/content/components/common/follow.js
@@ -39,9 +39,6 @@ export default class Follow {
messages.onMessage(this.onMessage.bind(this));
}
- update() {
- }
-
key(key) {
if (Object.keys(this.hints).length === 0) {
return false;
diff --git a/src/content/components/common/index.js b/src/content/components/common/index.js
index 5f5531b..4c2c1df 100644
--- a/src/content/components/common/index.js
+++ b/src/content/components/common/index.js
@@ -14,21 +14,12 @@ export default class Common {
input.onKey(key => keymapper.key(key));
this.store = store;
- this.children = [
- follow,
- input,
- keymapper,
- ];
this.reloadSettings();
messages.onMessage(this.onMessage.bind(this));
}
- update() {
- this.children.forEach(c => c.update());
- }
-
onMessage(message) {
switch (message.type) {
case messages.SETTINGS_CHANGED:
diff --git a/src/content/components/common/input.js b/src/content/components/common/input.js
index ef5af29..8b1d35d 100644
--- a/src/content/components/common/input.js
+++ b/src/content/components/common/input.js
@@ -28,9 +28,6 @@ export default class InputComponent {
target.addEventListener('keyup', this.onKeyUp.bind(this));
}
- update() {
- }
-
onKey(cb) {
this.onKeyListeners.push(cb);
}
diff --git a/src/content/components/common/keymapper.js b/src/content/components/common/keymapper.js
index 44d8212..1da3c0d 100644
--- a/src/content/components/common/keymapper.js
+++ b/src/content/components/common/keymapper.js
@@ -7,9 +7,6 @@ export default class KeymapperComponent {
this.store = store;
}
- update() {
- }
-
key(key) {
this.store.dispatch(inputActions.keyPress(key));