Remove watch notifications from SettingsStore

It slows things down a bit, and in practice is more unlikely to be a problem than a savior.
pull/21833/head
Travis Ralston 2020-07-27 17:17:08 -06:00
parent a15aae4daf
commit 51592ccfb6
1 changed files with 0 additions and 2 deletions

View File

@ -148,7 +148,6 @@ export default class SettingsStore {
callbackFn(originalSettingName, changedInRoomId, atLevel, newValAtLevel, newValue);
};
console.log(`Starting watcher for ${settingName}@${roomId || '<null room>'} as ID ${watcherId}`);
SettingsStore._watchers[watcherId] = localizedCallback;
defaultWatchManager.watchSetting(settingName, roomId, localizedCallback);
@ -167,7 +166,6 @@ export default class SettingsStore {
return;
}
console.log(`Ending watcher ID ${watcherReference}`);
defaultWatchManager.unwatchSetting(SettingsStore._watchers[watcherReference]);
delete SettingsStore._watchers[watcherReference];
}