fix: remove unused properties
This commit is contained in:
@@ -4,18 +4,15 @@ import {
|
|||||||
EncryptionIntent,
|
EncryptionIntent,
|
||||||
ApplicationService,
|
ApplicationService,
|
||||||
SNTheme,
|
SNTheme,
|
||||||
ComponentArea,
|
|
||||||
removeFromArray,
|
removeFromArray,
|
||||||
ApplicationEvent, ContentType
|
ApplicationEvent, ContentType
|
||||||
} from 'snjs';
|
} from 'snjs';
|
||||||
import { AppStateEvent } from '@/ui_models/app_state';
|
|
||||||
|
|
||||||
const CACHED_THEMES_KEY = 'cachedThemes';
|
const CACHED_THEMES_KEY = 'cachedThemes';
|
||||||
|
|
||||||
export class ThemeManager extends ApplicationService {
|
export class ThemeManager extends ApplicationService {
|
||||||
|
|
||||||
private activeThemes: string[] = []
|
private activeThemes: string[] = []
|
||||||
private unsubState?: () => void
|
|
||||||
private unregisterDesktop!: () => void
|
private unregisterDesktop!: () => void
|
||||||
private unregisterStream!: () => void
|
private unregisterStream!: () => void
|
||||||
|
|
||||||
@@ -36,8 +33,6 @@ export class ThemeManager extends ApplicationService {
|
|||||||
|
|
||||||
deinit() {
|
deinit() {
|
||||||
this.clearAppThemeState();
|
this.clearAppThemeState();
|
||||||
this.unsubState?.();
|
|
||||||
(this.unsubState as any) = undefined;
|
|
||||||
this.activeThemes.length = 0;
|
this.activeThemes.length = 0;
|
||||||
this.unregisterDesktop();
|
this.unregisterDesktop();
|
||||||
this.unregisterStream();
|
this.unregisterStream();
|
||||||
|
|||||||
Reference in New Issue
Block a user