Merge pull request #4782 from dasMulli/dead-code-in-tool-resolving

Remove unused lock file read from tool resolving logic.
This commit is contained in:
Livar 2016-11-18 19:30:50 -08:00 committed by GitHub
commit a57b9e5d01

View file

@ -76,7 +76,6 @@ namespace Microsoft.DotNet.Cli.Utils
tools, tools,
commandResolverArguments.CommandName, commandResolverArguments.CommandName,
commandResolverArguments.CommandArguments.OrEmptyIfNull(), commandResolverArguments.CommandArguments.OrEmptyIfNull(),
project.GetLockFile(),
project); project);
} }
@ -84,7 +83,6 @@ namespace Microsoft.DotNet.Cli.Utils
IEnumerable<SingleProjectInfo> toolsLibraries, IEnumerable<SingleProjectInfo> toolsLibraries,
string commandName, string commandName,
IEnumerable<string> args, IEnumerable<string> args,
LockFile lockFile,
IProject project) IProject project)
{ {
Reporter.Verbose.WriteLine($"projecttoolscommandresolver: resolving commandspec from {toolsLibraries.Count()} Tool Libraries."); Reporter.Verbose.WriteLine($"projecttoolscommandresolver: resolving commandspec from {toolsLibraries.Count()} Tool Libraries.");
@ -95,7 +93,6 @@ namespace Microsoft.DotNet.Cli.Utils
toolLibrary, toolLibrary,
commandName, commandName,
args, args,
lockFile,
project); project);
if (commandSpec != null) if (commandSpec != null)
@ -113,7 +110,6 @@ namespace Microsoft.DotNet.Cli.Utils
SingleProjectInfo toolLibraryRange, SingleProjectInfo toolLibraryRange,
string commandName, string commandName,
IEnumerable<string> args, IEnumerable<string> args,
LockFile lockFile,
IProject project) IProject project)
{ {
Reporter.Verbose.WriteLine($"projecttoolscommandresolver: Attempting to resolve command spec from tool {toolLibraryRange.Name}"); Reporter.Verbose.WriteLine($"projecttoolscommandresolver: Attempting to resolve command spec from tool {toolLibraryRange.Name}");