mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
Remove send_times_log feature.
We no longer use this in development.
This commit is contained in:
@@ -261,8 +261,6 @@ people.add(bob);
|
||||
$("#send-status").show();
|
||||
$("#compose-send-button").attr('disabled', 'disabled');
|
||||
$("#sending-indicator").show();
|
||||
global.feature_flags.log_send_times = true;
|
||||
global.feature_flags.collect_send_times = true;
|
||||
var set_timeout_called = false;
|
||||
global.patch_builtin('setTimeout', function (func, delay) {
|
||||
assert.equal(delay, 5000);
|
||||
|
||||
@@ -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] = {};
|
||||
}
|
||||
|
||||
@@ -2,10 +2,6 @@ var feature_flags = (function () {
|
||||
|
||||
var exports = {};
|
||||
|
||||
// Manually-flipped debugging flags
|
||||
exports.log_send_times = false;
|
||||
exports.collect_send_times = false;
|
||||
|
||||
// Experimental modification to support much wider message views.
|
||||
exports.full_width = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user