From 9019dda003dfd6c6d92ccc2a41987ebffb4bf156 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Tue, 29 Sep 2020 09:47:10 +0200 Subject: [PATCH] fix: remove unused properties --- app/assets/javascripts/services/themeManager.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/assets/javascripts/services/themeManager.ts b/app/assets/javascripts/services/themeManager.ts index 1fb707c9f05..c3bb0797d6b 100644 --- a/app/assets/javascripts/services/themeManager.ts +++ b/app/assets/javascripts/services/themeManager.ts @@ -4,18 +4,15 @@ import { EncryptionIntent, ApplicationService, SNTheme, - ComponentArea, removeFromArray, ApplicationEvent, ContentType } from 'snjs'; -import { AppStateEvent } from '@/ui_models/app_state'; const CACHED_THEMES_KEY = 'cachedThemes'; export class ThemeManager extends ApplicationService { private activeThemes: string[] = [] - private unsubState?: () => void private unregisterDesktop!: () => void private unregisterStream!: () => void @@ -36,8 +33,6 @@ export class ThemeManager extends ApplicationService { deinit() { this.clearAppThemeState(); - this.unsubState?.(); - (this.unsubState as any) = undefined; this.activeThemes.length = 0; this.unregisterDesktop(); this.unregisterStream();