compose: Remove unnecessary check_stream_existence wrapper.

This function had become just an empty shell.
This commit is contained in:
Tim Abbott 2017-04-28 17:39:11 -07:00
parent e0954d8811
commit 3f1df50c7b
1 changed files with 3 additions and 10 deletions

View File

@ -463,14 +463,14 @@ exports.get_invalid_recipient_emails = function () {
return invalid_recipients;
};
// *Synchronously* check if a stream exists.
// This is deprecated and we hope to remove it.
exports.check_stream_existence = function (stream_name, autosubscribe) {
function check_stream_for_send(stream_name, autosubscribe) {
var result = "error";
var request = {stream: stream_name};
if (autosubscribe) {
request.autosubscribe = true;
}
// *Synchronously* check if a stream exists.
// This is deprecated and we hope to remove it.
channel.post({
url: "/json/subscriptions/exists",
data: request,
@ -491,13 +491,6 @@ exports.check_stream_existence = function (stream_name, autosubscribe) {
},
});
return result;
};
// Checks if a stream exists. If not, displays an error and returns
// false.
function check_stream_for_send(stream_name, autosubscribe) {
var result = exports.check_stream_existence(stream_name, autosubscribe);
return result;
}
function validate_stream_message_mentions(stream_name) {