From 4b34ef9036190cb7b2078fe373c7d97543cae23e Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sun, 17 May 2015 22:00:16 +0100 Subject: [PATCH] chore(doc-gen): remove unused `signature` --- docs/dgeni-package/processors/readTypeScriptModules.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/dgeni-package/processors/readTypeScriptModules.js b/docs/dgeni-package/processors/readTypeScriptModules.js index 8e2965cfb3..bedff69274 100644 --- a/docs/dgeni-package/processors/readTypeScriptModules.js +++ b/docs/dgeni-package/processors/readTypeScriptModules.js @@ -162,7 +162,6 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo '" in ' + sourceFile.fileName + ' at line ' + location.start.line); } - var signature = typeChecker.getSignatureFromDeclaration(declaration); return declaration.parameters.map(function(parameter) { return getText(sourceFile, parameter).trim(); }); @@ -172,7 +171,6 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo var declaration = symbol.valueDeclaration || symbol.declarations[0]; var sourceFile = ts.getSourceFileOfNode(declaration); if(declaration.type) { - var signature = typeChecker.getSignatureFromDeclaration(declaration); return getText(sourceFile, declaration.type).trim(); } }