streams: Remove subs.show_and_focus_on_narrow().

We stopped calling this in this commit:

    3d77aa49db

We also remove its helper function and the obsolete
event that only it was looking for.
This commit is contained in:
Steve Howell 2018-12-06 23:12:19 +00:00 committed by Tim Abbott
parent 75bdd2c62c
commit 6d22634e56
1 changed files with 0 additions and 19 deletions

View File

@ -551,8 +551,6 @@ exports.setup_page = function (callback) {
filter_streams();
});
$(document).trigger($.Event('subs_page_loaded.zulip'));
if (callback) {
callback();
}
@ -845,23 +843,6 @@ exports.initialize = function () {
};
function focus_on_narrowed_stream() {
var stream_name = narrow_state.stream();
if (stream_name === undefined) {
return;
}
var sub = stream_data.get_sub(stream_name);
if (sub === undefined) {
// This stream doesn't exist, so prep for creating it.
$("#create_stream_name").val(stream_name);
}
}
exports.show_and_focus_on_narrow = function () {
$(document).one('subs_page_loaded.zulip', focus_on_narrowed_stream);
ui_util.change_tab_to("#streams");
};
return exports;
}());