From e0d283ba0b849da448177498447a689f7f498972 Mon Sep 17 00:00:00 2001 From: Kristen Kozak Date: Wed, 26 Jul 2023 10:10:47 -0700 Subject: [PATCH] Remove special case for running solver with no targets The TODO deleted in 4d3f7b5ee70fdbcaacf1ee021672752a86f2de89 suggests that the special case was only needed for the top-down solver, which has been removed. --- cabal-install/src/Distribution/Client/Dependency.hs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cabal-install/src/Distribution/Client/Dependency.hs b/cabal-install/src/Distribution/Client/Dependency.hs index f5a0d3a9b9f..749ae0df6d6 100644 --- a/cabal-install/src/Distribution/Client/Dependency.hs +++ b/cabal-install/src/Distribution/Client/Dependency.hs @@ -777,12 +777,6 @@ resolveDependencies -> Solver -> DepResolverParams -> Progress String String SolverInstallPlan --- TODO: is this needed here? see dontInstallNonReinstallablePackages -resolveDependencies platform comp _pkgConfigDB _solver params - | Set.null (depResolverTargets params) = - return (validateSolverResult platform comp indGoals []) - where - indGoals = depResolverIndependentGoals params resolveDependencies platform comp pkgConfigDB solver params = Step (showDepResolverParams finalparams) $ fmap (validateSolverResult platform comp indGoals) $