Chore: Remove onDelete as unused

pull/1136/head
Nelson Chan 3 years ago
parent edd2534a1b
commit 1e92487f30

@ -470,10 +470,6 @@ class Monitor extends BeanModel {
this.prometheus().remove(); this.prometheus().remove();
} }
onDelete() {
this.prometheus().remove();
}
prometheus() { prometheus() {
return new Prometheus(this); return new Prometheus(this);
} }

@ -738,7 +738,6 @@ exports.entryPage = "dashboard";
if (monitorID in monitorList) { if (monitorID in monitorList) {
monitorList[monitorID].stop(); monitorList[monitorID].stop();
monitorList[monitorID].onDelete();
delete monitorList[monitorID]; delete monitorList[monitorID];
} }

Loading…
Cancel
Save