summaryrefslogtreecommitdiff
path: root/systrace/catapult/common/node_runner/node_runner/minifyjs
diff options
context:
space:
mode:
Diffstat (limited to 'systrace/catapult/common/node_runner/node_runner/minifyjs')
-rwxr-xr-xsystrace/catapult/common/node_runner/node_runner/minifyjs21
1 files changed, 0 insertions, 21 deletions
diff --git a/systrace/catapult/common/node_runner/node_runner/minifyjs b/systrace/catapult/common/node_runner/node_runner/minifyjs
deleted file mode 100755
index e594169..0000000
--- a/systrace/catapult/common/node_runner/node_runner/minifyjs
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-/*
-Copyright 2019 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
-
-This script strips whitespace and comments from Javascript.
-*/
-const escodegen = require('escodegen');
-const espree = require('espree');
-const fs = require('fs');
-const nopt = require('nopt');
-
-const args = nopt();
-const filename = args.argv.remain[0];
-
-let text = fs.readFileSync(filename).toString('utf8');
-const ast = espree.parse(text, {ecmaVersion: 2018});
-text = escodegen.generate(ast, {format: {indent: {style: ''}}});
-fs.writeFileSync(filename, text);