Skip to content

Commit

Permalink
DEV: removes dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux authored and SamSaffron committed Oct 6, 2020
1 parent 11ba4f5 commit f0bae69
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions assets/message-bus.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
var started = false;
var clientId = uniqueId();
var callbacks = [];
var queue = [];
var interval = null;
var failCount = 0;
var baseUrl = "/";
var paused = false;
Expand Down Expand Up @@ -103,7 +101,6 @@
};

var processMessages = function(messages) {
var gotData = false;
if ((!messages) || (messages.length === 0)) { return false; }

for (var i = 0; i < messages.length; i++) {
Expand Down Expand Up @@ -213,24 +210,6 @@
}
};

var setOnProgressListener = function(xhr) {
var position = 0;
// if it takes longer than 3000 ms to get first chunk, we have some proxy
// this is messing with us, so just backoff from using chunked for now
var chunkedTimeout = setTimeout(disableChunked, 3000);
xhr.onprogress = function() {
clearTimeout(chunkedTimeout);
if (
xhr.getResponseHeader("Content-Type") ===
"application/json; charset=utf-8"
) {
// not chunked we are sending json back
chunked = false;
return;
}
position = handle_progress(xhr.responseText, position);
};
};
if (!me.ajax) {
throw new Error("Either jQuery or the ajax adapter must be loaded");
}
Expand Down

0 comments on commit f0bae69

Please sign in to comment.