From b3e725fcac99488923e041e129e43314035d7c63 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Wed, 13 Nov 2024 10:16:38 +0000 Subject: [PATCH] Remove unused code --- src/settings/settings.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/settings/settings.ts b/src/settings/settings.ts index 4eb2bcaa7..b2da16744 100644 --- a/src/settings/settings.ts +++ b/src/settings/settings.ts @@ -40,11 +40,9 @@ export class Setting { private readonly _value: BehaviorSubject; public readonly value: Observable; - public readonly setValue = (value: T, persist = true): void => { + public readonly setValue = (value: T): void => { this._value.next(value); - if (persist) { - localStorage.setItem(this.key, JSON.stringify(value)); - } + localStorage.setItem(this.key, JSON.stringify(value)); }; }