From a7aec168030623f1ff8212cf698e8829dfcb8703 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Fri, 1 May 2020 07:44:03 -0400 Subject: [PATCH] Remove debug output from tools/deflopt This is on the hot path. Revert this commit if debugging is needed. --- pnpm-lock.yaml | 5 +---- tools/deflopt/debug.js | 4 ---- tools/deflopt/deflopt.js | 4 ---- tools/deflopt/package.json | 2 +- 4 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 tools/deflopt/debug.js diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bd162345..dd307a28 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,9 +1,6 @@ importers: tools/deflopt: - dependencies: - debug: 4.1.1 - specifiers: - debug: ^4.1.1 + specifiers: {} tools/deploy: dependencies: commander: 5.1.0 diff --git a/tools/deflopt/debug.js b/tools/deflopt/debug.js deleted file mode 100644 index 0327fa85..00000000 --- a/tools/deflopt/debug.js +++ /dev/null @@ -1,4 +0,0 @@ - -import debugfn from 'debug'; - -export default debugfn('deflopt'); diff --git a/tools/deflopt/deflopt.js b/tools/deflopt/deflopt.js index 351c5735..bd3d22e6 100644 --- a/tools/deflopt/deflopt.js +++ b/tools/deflopt/deflopt.js @@ -1,6 +1,5 @@ import cp from 'child_process'; -import debug from './debug.js'; /* Output looks something like: @@ -32,7 +31,6 @@ export function deflopt(exe, file) { // command line switches. file = file.replace(/\//g, "\\"); - debug("File at: " + file); const output = cp.execFileSync( "wine", [exe, file], @@ -40,9 +38,7 @@ export function deflopt(exe, file) { // Wine doesn't even like it when the current directory is on fuse! // What a persnickety program! cwd: '/'}); - debug("Output: " + JSON.stringify(output)); const processed = parse("Number of files processed", output); const rewritten = parse("Number of files rewritten", output); - debug(`Processed ${processed}, rewritten ${rewritten}`); return {processed, rewritten}; } diff --git a/tools/deflopt/package.json b/tools/deflopt/package.json index cc9549e1..1b0209e0 100644 --- a/tools/deflopt/package.json +++ b/tools/deflopt/package.json @@ -1 +1 @@ -{"type":"module","dependencies":{"debug":"^4.1.1"}} +{"type":"module","dependencies":{}}