summaryrefslogtreecommitdiff
path: root/ext/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/util.js')
-rw-r--r--ext/util.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/util.js b/ext/util.js
index e90904f1..76579cac 100644
--- a/ext/util.js
+++ b/ext/util.js
@@ -68,13 +68,3 @@ function getPopupPositionForRange(popup, range, offset) {
return {x: posX, y: posY};
}
-
-function whenEnabled(callback) {
- return (...args) => {
- getState((state) => {
- if (state === 'enabled') {
- callback(...args);
- }
- });
- };
-}