Remove send_times_log feature.

We no longer use this in development.
This commit is contained in:
Steve Howell
2017-07-30 06:44:46 -04:00
committed by Tim Abbott
parent 41f37d0a6f
commit 90c5b53da3
3 changed files with 0 additions and 14 deletions

View File

@@ -211,7 +211,6 @@ function send_message_socket(request, success, error) {
});
}
exports.send_times_log = [];
exports.send_times_data = {};
function maybe_report_send_times(message_id) {
var data = exports.send_times_data[message_id];
@@ -258,13 +257,6 @@ exports.report_as_received = function report_as_received(message) {
function process_send_time(message_id, start_time, locally_echoed) {
var send_finished = new Date();
var send_time = (send_finished - start_time);
if (feature_flags.log_send_times) {
blueslip.log("send time: " + send_time);
}
if (feature_flags.collect_send_times) {
exports.send_times_log.push(send_time);
}
if (exports.send_times_data[message_id] === undefined) {
exports.send_times_data[message_id] = {};
}