Remove usage of deleted function

This commit is contained in:
Cameron Gutman 2018-03-28 01:25:22 -07:00
parent a069451888
commit 80d9dc7c77

View File

@ -784,10 +784,6 @@ function saveFramerate() {
// unfortunately, objects with function instances (classes) are stripped of their function instances when converted to a raw object // unfortunately, objects with function instances (classes) are stripped of their function instances when converted to a raw object
// so we cannot forget to revive the object after we load it. // so we cannot forget to revive the object after we load it.
function saveHosts() { function saveHosts() {
for(var hostUID in hosts) {
// slim the object down to only store the necessary bytes, because we have limited storage
hosts[hostUID]._prepareForStorage();
}
storeData('hosts', hosts, null); storeData('hosts', hosts, null);
} }