Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit a4af4f3

Browse files
author
Lucas Rojas
committed
Remove commented code from ico.js progrss.js and serviceworkertools.js
1 parent 5bed2fe commit a4af4f3

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

lib/manifestTools/manifestCreator/scrapers/icojs/src/ico.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ var imageData = require('./image-data');
66
var Q = require('q');
77

88
var range = function(n) {
9-
// fill() replaced with for ..
109
var array = new Array(n);
1110
for (var i = 0; i < n; i++) {
1211
array[i] = 0;
1312
}
1413

1514
return array.map(function(x, i) { return i; });
16-
17-
// return new Array(n).fill(0).map(function(_, i) { return i });
1815
};
1916

2017
/**
@@ -159,8 +156,6 @@ var factory = function(config) {
159156
return false;
160157
}
161158
var icoDv = new DataView(buffer);
162-
// idReserved = icoDv.getUint16(0, true)
163-
// idType = icoDv.getUint16(0, true)
164159
return icoDv.getUint16(0, true) === 0 && icoDv.getUint16(2, true) === 1;
165160
},
166161
/**

lib/manifestTools/manifestLoader.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ function processManifestContents (data, manifestFormat, callback) {
7272
detectedFormat = manifestFormat;
7373
} else if (!detectedFormat) {
7474
detectedFormat = 'w3c'
75-
// var availableFormats = listAvailableManifestFormats().join(', ');
76-
//return callback(new Error('Unable to detect the input manifest format. Try specifying the correct format using the -f <format> option. Available formats are: ' + availableFormats + '.'));
7775
}
7876

7977
log.info('Found a ' + detectedFormat + ' manifest...');

lib/progress.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var style = {
88
};
99

1010
var compactText = '\u2014\\|/';
11-
// var compactText = ' .*°*.';
1211

1312
function ProgressIndicator (message, options, updateFrequency, stream) {
1413

0 commit comments

Comments
 (0)