From e49cbbbbec2b54db371fed41d5eec345ed6b08a6 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 22 Jul 2022 22:14:05 +0200 Subject: [PATCH] Contact Popup `viewSaveTrigger` never used --- dev/View/Popup/Contacts.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dev/View/Popup/Contacts.js b/dev/View/Popup/Contacts.js index 41b272222..16a76e988 100644 --- a/dev/View/Popup/Contacts.js +++ b/dev/View/Popup/Contacts.js @@ -1,6 +1,5 @@ import { koArrayWithDestroy } from 'External/ko'; -import { SaveSettingsStep } from 'Common/Enums'; import { ComposeType } from 'Common/EnumsUser'; import { registerShortcut } from 'Common/Globals'; import { arrayLength, pInt } from 'Common/Utils'; @@ -53,8 +52,6 @@ export class ContactsPopupView extends AbstractViewPopup { viewID: '', viewReadOnly: false, - viewSaveTrigger: SaveSettingsStep.Idle, - viewSaving: false, watchDirty: false, @@ -211,7 +208,6 @@ export class ContactsPopupView extends AbstractViewPopup { saveCommand() { this.viewSaving(true); - this.viewSaveTrigger(SaveSettingsStep.Animate); const requestUid = Jua.randomId(); @@ -233,13 +229,8 @@ export class ContactsPopupView extends AbstractViewPopup { res = true; } - setTimeout(() => - this.viewSaveTrigger(res ? SaveSettingsStep.TrueResult : SaveSettingsStep.FalseResult) - , 350); - if (res) { this.watchDirty(false); - setTimeout(() => this.viewSaveTrigger(SaveSettingsStep.Idle), 1000); } }, { RequestUid: requestUid,