diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-24 21:34:55 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-02-24 21:58:12 +0900 |
commit | a880d5684b35235436f571e5fd8e9f857bf30434 (patch) | |
tree | 2f0e20571707c33b2080dbbb3256ad61c0d4548f /src/background | |
parent | a26d8a8a1bed48a77e062914c120a23ace7bb8cf (diff) |
Remove unused methods
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/repositories/PersistentSettingRepository.js | 4 | ||||
-rw-r--r-- | src/background/usecases/SettingUseCase.js | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/background/repositories/PersistentSettingRepository.js b/src/background/repositories/PersistentSettingRepository.js index 639bcd1..4cab107 100644 --- a/src/background/repositories/PersistentSettingRepository.js +++ b/src/background/repositories/PersistentSettingRepository.js @@ -1,10 +1,6 @@ import Setting from '../domains/Setting'; export default class SettingRepository { - save(settings) { - return browser.storage.local.set({ settings: settings.serialize() }); - } - async load() { let { settings } = await browser.storage.local.get('settings'); if (!settings) { diff --git a/src/background/usecases/SettingUseCase.js b/src/background/usecases/SettingUseCase.js index fe3ca5d..9e17408 100644 --- a/src/background/usecases/SettingUseCase.js +++ b/src/background/usecases/SettingUseCase.js @@ -9,10 +9,6 @@ export default class SettingUseCase { this.settingRepository = new SettingRepository(); } - save(settings) { - this.persistentSettingRepository.save(settings); - } - get() { return this.settingRepository.get(); } |