mirror of https://github.com/zulip/zulip.git
subs: remove unused tutorial functions.
(imported from commit 666bcae369f64848c778eccf3fc97ae39986c353)
This commit is contained in:
parent
46afe3be69
commit
5db6d16b4a
|
@ -709,21 +709,6 @@ function ajaxSubscribeForCreation(stream, principals, invite_only) {
|
|||
});
|
||||
}
|
||||
|
||||
// The tutorial bot needs this function to add you to the
|
||||
// tutorial-yourname stream.
|
||||
exports.tutorial_subscribe_or_add_me_to = function (stream_name) {
|
||||
var stream_status = compose.check_stream_existence(stream_name);
|
||||
if (stream_status === 'does-not-exist') {
|
||||
return ajaxSubscribeForCreation(stream_name, [page_params.email], false);
|
||||
} else {
|
||||
return ajaxSubscribe(stream_name);
|
||||
}
|
||||
};
|
||||
|
||||
exports.tutorial_unsubscribe_me_from = function (stream_name) {
|
||||
ajaxUnsubscribe(stream_name);
|
||||
};
|
||||
|
||||
function people_cmp(person1, person2) {
|
||||
// Compares objects of the form used in people_list.
|
||||
var name_cmp = util.strcmp(person1.full_name, person2.full_name);
|
||||
|
|
Loading…
Reference in New Issue