Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 1fd6e02

Browse files
committed
removed dead code
1 parent 268f16b commit 1fd6e02

File tree

1 file changed

+0
-24
lines changed
  • packages/google-closure-compiler

1 file changed

+0
-24
lines changed

packages/google-closure-compiler/cli.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,9 @@
1515
* limitations under the License.
1616
*/
1717
'use strict';
18-
const fs = require('fs');
19-
const path = require('path');
2018
const {getNativeImagePath, getFirstSupportedPlatform} = require('./lib/utils');
2119
const parseArgs = require('minimist');
2220

23-
/** @see https://stackoverflow.com/a/40686853/1211524 */
24-
function mkDirByPathSync(targetDir, {isRelativeToScript = false} = {}) {
25-
const sep = path.sep;
26-
const initDir = path.isAbsolute(targetDir) ? sep : '';
27-
const baseDir = isRelativeToScript ? __dirname : '.';
28-
29-
targetDir.split(sep).reduce((parentDir, childDir) => {
30-
const curDir = path.resolve(baseDir, parentDir, childDir);
31-
try {
32-
if (!fs.existsSync(curDir)) {
33-
fs.mkdirSync(curDir);
34-
}
35-
} catch (err) {
36-
if (err.code !== 'EEXIST') {
37-
throw err;
38-
}
39-
}
40-
41-
return curDir;
42-
}, initDir);
43-
}
44-
4521
const compilerFlags = parseArgs(process.argv.slice(2));
4622

4723
// The platform flag is only used by this cli script - it is not natively supported by any compiler version.

0 commit comments

Comments
 (0)