refactor: remove dead code
This commit is contained in:
@@ -334,7 +334,6 @@ sub has_changed ($$) {
|
||||
my $oldEntry = shift;
|
||||
my $newEntry = shift;
|
||||
|
||||
my $update = 0;
|
||||
for my $key (
|
||||
'duration', 'errors', 'file', 'channels',
|
||||
'format', 'format_version', 'format_profile', 'format_settings',
|
||||
|
||||
@@ -1177,8 +1177,7 @@ sub printTableBody {
|
||||
if defined $event->{rms_left};
|
||||
$event->{content} .= audio::formatLoudness( $event->{rms_right}, 'R: ' )
|
||||
if defined $event->{rms_right};
|
||||
|
||||
#$event->{content} .= formatBitrate( $event->{bitrate} ) if defined $event->{bitrate};
|
||||
#$event->{content} .= formatBitrate( $event->{bitrate} ) if defined $event->{bitrate};
|
||||
$event->{content} .= '</span>';
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ function uploadFile(uploadButton){
|
||||
processData: false,
|
||||
xhr: function() {
|
||||
var start = new Date();
|
||||
//var myXhr = $.ajaxSettings.xhr();
|
||||
var xhr = new window.XMLHttpRequest();
|
||||
if (xhr.upload) {
|
||||
var c=0;
|
||||
@@ -87,7 +86,6 @@ function uploadFile(uploadButton){
|
||||
var duration=(new Date().getTime() - start.getTime()) / 1000 ;
|
||||
var bitrate = loaded / duration;
|
||||
|
||||
//var remaining = Math.round(bitrate * ( total - loaded) );
|
||||
var remaining = Math.round( (duration * data.total / data.loaded) - duration );
|
||||
if (oldRemaining == 0) oldRemaining = remaining;
|
||||
if (duration>30) remaining= oldRemaining*0.5 + remaining*0.5;
|
||||
@@ -120,7 +118,6 @@ function uploadFile(uploadButton){
|
||||
showFinished();
|
||||
hideProgress();
|
||||
hideError();
|
||||
//setTimeout(function() { location.reload() }, 1000);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -86,13 +86,8 @@ function updateContainer(id, url, callback){
|
||||
|
||||
function load(url){
|
||||
window.location=url;
|
||||
//window.location.replace(url);
|
||||
//document.location.href=url;
|
||||
//$(window).load(url);
|
||||
//$('html').load(url);
|
||||
}
|
||||
|
||||
|
||||
function postContainer(url, parameters, callback){
|
||||
if (url!='') $.post(url, parameters, callback);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ function pageLeaveHandler(){
|
||||
return confirmPageLeave();
|
||||
};
|
||||
|
||||
//$(window).unload(function(){});
|
||||
pageIsLoaded=1;
|
||||
console.log("pageLeaveHandler=initialized")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user