mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Remove some dead code in stream_list.js.
I forgot to remove this code in a recent refactoring that copied this code into activity.js. It should not have caused any errors, but it's no longer needed.
This commit is contained in:
@@ -155,12 +155,6 @@ function get_filter_li(type, name) {
|
|||||||
if (type === 'stream') {
|
if (type === 'stream') {
|
||||||
var sub = stream_data.get_sub(name);
|
var sub = stream_data.get_sub(name);
|
||||||
return $("#stream_sidebar_" + sub.stream_id);
|
return $("#stream_sidebar_" + sub.stream_id);
|
||||||
} else if (type === "private") {
|
|
||||||
if (name.indexOf(",") < 0) {
|
|
||||||
return $("li.user_sidebar_entry[data-email='" + name + "']");
|
|
||||||
} else {
|
|
||||||
return $("li.group-pms-sidebar-entry[data-emails='" + name + "']");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return iterate_to_find("#" + type + "_filters > li", name);
|
return iterate_to_find("#" + type + "_filters > li", name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user