diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-09-15 19:48:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-15 19:48:58 -0400 |
commit | 79ef6e151edec51b2484cdc00242dde71958ab3b (patch) | |
tree | c16519757900ac6dfc5678982ddfb48ef49da21b /ext/bg/js/settings | |
parent | f997f017422bba2527e620000e3a938b916f25ac (diff) |
Cleanup unused utils (#832)
* Remove api.optionsSave
* Remove getOptionsMutable and getOptionsFullMutable
* Remove util.js
* Remove yomichanBackend
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r-- | ext/bg/js/settings/settings-controller.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ext/bg/js/settings/settings-controller.js b/ext/bg/js/settings/settings-controller.js index 4e61e05c..f4ddf6fb 100644 --- a/ext/bg/js/settings/settings-controller.js +++ b/ext/bg/js/settings/settings-controller.js @@ -17,8 +17,6 @@ /* global * api - * utilBackend - * utilBackgroundIsolate */ class SettingsController extends EventDispatcher { @@ -51,10 +49,6 @@ class SettingsController extends EventDispatcher { await this._onOptionsUpdatedInternal(); } - async save() { - await api.optionsSave(this._source); - } - async getOptions() { const optionsContext = this.getOptionsContext(); return await api.optionsGet(optionsContext); @@ -64,15 +58,6 @@ class SettingsController extends EventDispatcher { return await api.optionsGetFull(); } - async getOptionsMutable() { - const optionsContext = this.getOptionsContext(); - return utilBackend().getOptions(utilBackgroundIsolate(optionsContext)); - } - - async getOptionsFullMutable() { - return utilBackend().getFullOptions(); - } - async setAllSettings(value) { const profileIndex = value.profileCurrent; await api.setAllSettings(value, this._source); |