aboutsummaryrefslogtreecommitdiff
path: root/paludis/environment_implementation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/environment_implementation.cc')
-rw-r--r--paludis/environment_implementation.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/paludis/environment_implementation.cc b/paludis/environment_implementation.cc
index f4e645570..cfbec0860 100644
--- a/paludis/environment_implementation.cc
+++ b/paludis/environment_implementation.cc
@@ -23,7 +23,6 @@
#include <paludis/hook.hh>
#include <paludis/distribution.hh>
#include <paludis/selection.hh>
-#include <paludis/selection_cache.hh>
#include <paludis/repository.hh>
#include <paludis/generator.hh>
#include <paludis/filter.hh>
@@ -128,7 +127,6 @@ namespace paludis
struct Imp<EnvironmentImplementation>
{
std::map<unsigned, NotifierCallbackFunction> notifier_callbacks;
- std::list<std::shared_ptr<const SelectionCache> > selection_caches;
std::list<std::shared_ptr<Repository> > repositories;
std::multimap<int, std::list<std::shared_ptr<Repository> >::iterator> repository_importances;
@@ -201,10 +199,7 @@ EnvironmentImplementation::is_paludis_package(const QualifiedPackageName & n) co
std::shared_ptr<PackageIDSequence>
EnvironmentImplementation::operator[] (const Selection & selection) const
{
- if (_imp->selection_caches.empty())
- return selection.perform_select(this);
- else
- return _imp->selection_caches.back()->perform_select(this, selection);
+ return selection.perform_select(this);
}
NotifierCallbackID
@@ -234,18 +229,6 @@ EnvironmentImplementation::trigger_notifier_callback(const NotifierCallbackEvent
}
void
-EnvironmentImplementation::add_selection_cache(const std::shared_ptr<const SelectionCache> & c)
-{
- _imp->selection_caches.push_back(c);
-}
-
-void
-EnvironmentImplementation::remove_selection_cache(const std::shared_ptr<const SelectionCache> & c)
-{
- _imp->selection_caches.remove(c);
-}
-
-void
EnvironmentImplementation::add_set(
const SetName & name,
const SetName & combined_name,