From 8fa519ded688899287f46b5a8afb592c5d98997c Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 11 Nov 2016 17:00:12 -0800 Subject: [PATCH] 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. --- static/js/stream_list.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/static/js/stream_list.js b/static/js/stream_list.js index f347d0595e..95d5710c63 100644 --- a/static/js/stream_list.js +++ b/static/js/stream_list.js @@ -155,12 +155,6 @@ function get_filter_li(type, name) { if (type === 'stream') { var sub = stream_data.get_sub(name); 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); }