Chore: Remove onDelete as unused

This commit is contained in:
Nelson Chan 2022-01-07 12:28:08 +08:00
parent edd2534a1b
commit 1e92487f30
2 changed files with 0 additions and 5 deletions

View File

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

View File

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