From 242d6c73235a899db93bc118d0dd86eaeb803b44 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 7 Jul 2016 14:53:23 -0700 Subject: [PATCH] tools: remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `oldDirs` is assigned but never used. Remove it. (This was missed by the linter in previous versions of ESLint but is flagged by the current version. Updating the linter is contingent on this change or some similar remedy landing.) PR-URL: https://github.com/nodejs/node/pull/7594 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso --- tools/doc/addon-verify.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tools/doc/addon-verify.js b/tools/doc/addon-verify.js index a6dca436383231..2abd3574cffd7f 100644 --- a/tools/doc/addon-verify.js +++ b/tools/doc/addon-verify.js @@ -17,13 +17,6 @@ let id = 0; // Just to make sure that all examples will be processed tokens.push({ type: 'heading' }); -var oldDirs = fs.readdirSync(verifyDir); -oldDirs = oldDirs.filter(function(dir) { - return /^\d{2}_/.test(dir); -}).map(function(dir) { - return path.resolve(verifyDir, dir); -}); - for (var i = 0; i < tokens.length; i++) { var token = tokens[i]; if (token.type === 'heading' && token.text) {