chore(doc-gen): remove unused `signature`

This commit is contained in:
Peter Bacon Darwin 2015-05-17 22:00:16 +01:00
parent 8c409e9251
commit 4b34ef9036
1 changed files with 0 additions and 2 deletions

View File

@ -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();
}
}