Skip to content

Commit

Permalink
(chocolateyGH-268) Remove Unused Code
Browse files Browse the repository at this point in the history
With the move to finding the script in a singular function, the old
code no longer is used. Remove it.
  • Loading branch information
ferventcoder committed Apr 11, 2016
1 parent b820e31 commit 15944b6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack
{
var installerRun = false;

var file = "chocolateyInstall.ps1";
switch (command)
{
case CommandNameType.uninstall:
file = "chocolateyUninstall.ps1";
break;
}

var packageDirectory = packageResult.InstallLocation;
if (packageDirectory.is_equal_to(ApplicationParameters.InstallLocation) || packageDirectory.is_equal_to(ApplicationParameters.PackagesLocation))
{
Expand Down Expand Up @@ -213,6 +205,7 @@ public bool run_action(ChocolateyConfiguration configuration, PackageResult pack
Environment.SetEnvironmentVariable("chocolateyInstallArguments", configuration.InstallArguments);
Environment.SetEnvironmentVariable("packageParameters", configuration.PackageParameters);
Environment.SetEnvironmentVariable("chocolateyPackageParameters", configuration.PackageParameters);

if (configuration.ForceX86)
{
Environment.SetEnvironmentVariable("chocolateyForceX86", "true");
Expand Down

0 comments on commit 15944b6

Please sign in to comment.