Remove unused methods

jh-changes
Shin'ya Ueoka 6 years ago
parent a26d8a8a1b
commit a880d5684b
  1. 4
      src/background/repositories/PersistentSettingRepository.js
  2. 4
      src/background/usecases/SettingUseCase.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) {

@ -9,10 +9,6 @@ export default class SettingUseCase {
this.settingRepository = new SettingRepository();
}
save(settings) {
this.persistentSettingRepository.save(settings);
}
get() {
return this.settingRepository.get();
}