aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paludis/resolver/decider.cc13
-rw-r--r--paludis/resolver/decider.hh5
2 files changed, 2 insertions, 16 deletions
diff --git a/paludis/resolver/decider.cc b/paludis/resolver/decider.cc
index 7556090..7d30965 100644
--- a/paludis/resolver/decider.cc
+++ b/paludis/resolver/decider.cc
@@ -2053,7 +2053,7 @@ Decider::purge()
));
}
- const std::shared_ptr<const ConstraintSequence> constraints(_make_constraints_for_purge(resolution, *i, used_to_use));
+ const std::shared_ptr<const ConstraintSequence> constraints(_imp->fns.get_constraints_for_purge_fn()(resolution, *i, used_to_use));
for (ConstraintSequence::ConstIterator c(constraints->begin()), c_end(constraints->end()) ;
c != c_end ; ++c)
_apply_resolution_constraint(resolution, *c);
@@ -2321,7 +2321,7 @@ Decider::_resolve_purges()
if (resolution->decision())
continue;
- const std::shared_ptr<const ConstraintSequence> constraints(_make_constraints_for_purge(resolution, *i, used_to_use));
+ const std::shared_ptr<const ConstraintSequence> constraints(_imp->fns.get_constraints_for_purge_fn()(resolution, *i, used_to_use));
for (ConstraintSequence::ConstIterator c(constraints->begin()), c_end(constraints->end()) ;
c != c_end ; ++c)
_apply_resolution_constraint(resolution, *c);
@@ -2335,15 +2335,6 @@ Decider::_resolve_purges()
return changed;
}
-const std::shared_ptr<ConstraintSequence>
-Decider::_make_constraints_for_purge(
- const std::shared_ptr<const Resolution> & resolution,
- const std::shared_ptr<const PackageID> & id,
- const std::shared_ptr<const ChangeByResolventSequence> & r) const
-{
- return _imp->fns.get_constraints_for_purge_fn()(resolution, id, r);
-}
-
namespace
{
struct ConstraintFromOtherDestinationVisitor
diff --git a/paludis/resolver/decider.hh b/paludis/resolver/decider.hh
index ed8c4ff..cb970e6 100644
--- a/paludis/resolver/decider.hh
+++ b/paludis/resolver/decider.hh
@@ -106,11 +106,6 @@ namespace paludis
const BlockDepSpec & dep,
const std::shared_ptr<const Reason> & reason) const;
- const std::shared_ptr<ConstraintSequence> _make_constraints_for_purge(
- const std::shared_ptr<const Resolution> & resolution,
- const std::shared_ptr<const PackageID> &,
- const std::shared_ptr<const ChangeByResolventSequence> &) const;
-
const std::shared_ptr<ConstraintSequence> _make_constraints_from_other_destination(
const std::shared_ptr<const Resolution> & resolution,
const std::shared_ptr<const Resolution> & from_resolution,