compose.js: Remove broken test_send_many_messages().

This commit is contained in:
Aditya Bansal
2017-07-08 15:30:47 +05:30
committed by showell
parent 783f75ef10
commit 237ec76bdc

View File

@@ -369,33 +369,6 @@ exports.enter_with_preview_open = function () {
}
};
// This function is for debugging / data collection only. Arguably it
// should live in debug.js, but then it wouldn't be able to call
// send_message() directly below.
exports.test_send_many_messages = function (stream, subject, count) {
var num_sent = 0;
function do_send_one() {
var message = {};
num_sent += 1;
message.type = "stream";
message.to = stream;
message.subject = subject;
message.content = num_sent.toString();
exports.send_message(message);
if (num_sent === count) {
return;
}
setTimeout(do_send_one, 1000);
}
do_send_one();
};
exports.finish = function () {
exports.clear_invites();