mirror of https://github.com/zulip/zulip.git
list_render: Remove redundant `list_render.delete` method.
This commit is contained in:
parent
2aba7c239f
commit
92d843add9
|
@ -329,18 +329,6 @@ var list_render = (function () {
|
|||
return DEFAULTS.instances[name] || false;
|
||||
};
|
||||
|
||||
// this can delete list render issues and free up memory if needed.
|
||||
exports.delete = function (name) {
|
||||
if (DEFAULTS.instances[name]) {
|
||||
delete DEFAULTS.instances[name];
|
||||
return true;
|
||||
}
|
||||
|
||||
blueslip.error("The progressive list render instance with the name '" +
|
||||
name + "' does not exist.");
|
||||
return false;
|
||||
};
|
||||
|
||||
return exports;
|
||||
}());
|
||||
|
||||
|
|
Loading…
Reference in New Issue