Skip to content

Commit c73e905

Browse files
committed
Remove unused javascript methods
1 parent 3b4962a commit c73e905

1 file changed

Lines changed: 0 additions & 43 deletions

File tree

core/src/main/resources/org/apache/spark/ui/static/executorspage.js

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,6 @@ function formatDuration(milliseconds, type) {
3838
return hours.toFixed(1) + " h";
3939
}
4040

41-
function makeIdNumeric(id) {
42-
var strs = id.split("_");
43-
if (strs.length < 3) {
44-
return id;
45-
}
46-
var appSeqNum = strs[2];
47-
var resl = strs[0] + "_" + strs[1] + "_";
48-
var diff = 10 - appSeqNum.length;
49-
while (diff > 0) {
50-
resl += "0"; // padding 0 before the app sequence number to make sure it has 10 characters
51-
diff--;
52-
}
53-
resl += appSeqNum;
54-
return resl;
55-
}
56-
57-
function formatDate(date) {
58-
return date.split(".")[0].replace("T", " ");
59-
}
60-
61-
function getParameterByName(name, searchString) {
62-
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
63-
results = regex.exec(searchString);
64-
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
65-
}
66-
6741
function formatStatus(status, type) {
6842
if(type !== 'display') return status;
6943
if(status) {
@@ -99,21 +73,6 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
9973
}
10074
} );
10175

102-
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
103-
"appid-numeric-pre": function ( a ) {
104-
var x = a.match(/title="*(-?[0-9a-zA-Z\-\_]+)/)[1];
105-
return makeIdNumeric(x);
106-
},
107-
108-
"appid-numeric-asc": function ( a, b ) {
109-
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
110-
},
111-
112-
"appid-numeric-desc": function ( a, b ) {
113-
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
114-
}
115-
} );
116-
11776
$(document).ajaxStop($.unblockUI);
11877
$(document).ajaxStart(function(){
11978
$.blockUI({ message: '<h3>Loading Executors Page...</h3>'});
@@ -224,8 +183,6 @@ $(document).ready(function() {
224183

225184
executorsSummary = $("#active-executors");
226185
searchString = executorsSummary["context"]["location"]["search"];
227-
requestedIncomplete = getParameterByName("showIncomplete", searchString);
228-
requestedIncomplete = (requestedIncomplete == "true" ? true : false);
229186

230187
var endPoint = createRESTEndPoint();
231188

0 commit comments

Comments
 (0)