subs: remove unused tutorial functions.

(imported from commit 666bcae369f64848c778eccf3fc97ae39986c353)
This commit is contained in:
Jessica McKellar 2013-06-27 17:42:56 -04:00
parent 46afe3be69
commit 5db6d16b4a
1 changed files with 0 additions and 15 deletions

View File

@ -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);