refactor: remove dead code

This commit is contained in:
Milan
2020-05-24 00:00:50 +02:00
parent a12bffde44
commit 41bd4be39a
5 changed files with 1 additions and 12 deletions

View File

@@ -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',

View File

@@ -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>';
}

View File

@@ -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);
}
);
}

View File

@@ -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);
}

View File

@@ -22,7 +22,6 @@ function pageLeaveHandler(){
return confirmPageLeave();
};
//$(window).unload(function(){});
pageIsLoaded=1;
console.log("pageLeaveHandler=initialized")