left sidebar: Remove unneeded overlay code.

These handlers are not reachable if overlays are
open.
This commit is contained in:
Steve Howell 2018-12-07 20:38:57 +00:00 committed by Tim Abbott
parent 14bfa74069
commit dfddb0a636
2 changed files with 0 additions and 9 deletions

View File

@ -453,9 +453,6 @@ function keydown_enter_key() {
return;
}
if (overlays.is_active()) {
overlays.close_active();
}
exports.clear_and_hide_search();
narrow.by('stream', sub.name, {trigger: 'sidebar enter key'});
}
@ -484,9 +481,6 @@ exports.initialize = function () {
if (e.metaKey || e.ctrlKey) {
return;
}
if (overlays.is_active()) {
overlays.close_active();
}
var stream_id = $(e.target).parents('li').attr('data-stream-id');
var sub = stream_data.get_sub_by_id(stream_id);
popovers.hide_all();

View File

@ -284,9 +284,6 @@ exports.initialize = function () {
// In a more componentized world, we would delegate some
// of this stuff back up to our parents.
if (overlays.is_active()) {
overlays.close_active();
}
var stream_id = $(e.target).parents('.narrow-filter').attr('data-stream-id');
var sub = stream_data.get_sub_by_id(stream_id);