cloud: remove dead code

This commit is contained in:
Koushik Dutta
2024-09-18 08:47:51 -07:00
parent 4892b72f37
commit 979c430303

View File

@@ -266,10 +266,6 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
devices: [],
});
this.storageSettings.settings.register.onPut = async () => {
await this.sendRegistrationId(await this.manager.registrationId);
}
this.storageSettings.settings.upnpStatus.onGet = async () => {
return {
hide: this.storageSettings.values.forwardingMode !== 'UPNP',
@@ -313,11 +309,6 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
};
this.storageSettings.settings.securePort.onPut = (ov, nv) => {
if (ov && ov !== nv)
this.log.a('Reload the Scrypted Cloud Plugin to apply the port change.');
};
if (!this.storageSettings.values.certificate)
this.storageSettings.values.certificate = createSelfSignedCertificate();