aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 20:35:18 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-27 20:35:18 +0000
commit761f72d25876dac3e239fad163123d35cacda4a0 (patch)
treef8b0b5725f1cc53b9840c36cda10527f97c7ed4c /paludis
parentf37072df0cbd9bf0a2d3ad670728e1238ea243db (diff)
downloadpaludis-761f72d25876dac3e239fad163123d35cacda4a0.tar.gz
paludis-761f72d25876dac3e239fad163123d35cacda4a0.tar.xz
Nothing uses default_destinations now
Diffstat (limited to 'paludis')
-rw-r--r--paludis/environment.hh11
-rw-r--r--paludis/environment_implementation.cc15
-rw-r--r--paludis/environment_implementation.hh3
-rw-r--r--paludis/repository-fwd.hh10
4 files changed, 1 insertions, 38 deletions
diff --git a/paludis/environment.hh b/paludis/environment.hh
index c072bb1df..4c791a636 100644
--- a/paludis/environment.hh
+++ b/paludis/environment.hh
@@ -412,17 +412,6 @@ namespace paludis
///\}
- ///\name Destination information
- ///\{
-
- /**
- * Default destination candidates for installing packages.
- */
- virtual std::shared_ptr<const DestinationsSet> default_destinations() const
- PALUDIS_ATTRIBUTE((warn_unused_result)) = 0;
-
- ///\}
-
///\name Hook methods
///\{
diff --git a/paludis/environment_implementation.cc b/paludis/environment_implementation.cc
index 8cde9bde9..6ed5ba9d0 100644
--- a/paludis/environment_implementation.cc
+++ b/paludis/environment_implementation.cc
@@ -163,21 +163,6 @@ EnvironmentImplementation::fetchers_dirs() const
return result;
}
-std::shared_ptr<const DestinationsSet>
-EnvironmentImplementation::default_destinations() const
-{
- std::shared_ptr<DestinationsSet> result(std::make_shared<DestinationsSet>());
-
- for (PackageDatabase::RepositoryConstIterator r(package_database()->begin_repositories()),
- r_end(package_database()->end_repositories()) ;
- r != r_end ; ++r)
- if ((**r).destination_interface())
- if ((**r).destination_interface()->is_default_destination())
- result->insert(*r);
-
- return result;
-}
-
std::string
EnvironmentImplementation::distribution() const
{
diff --git a/paludis/environment_implementation.hh b/paludis/environment_implementation.hh
index a6b99a14a..04fff5b0c 100644
--- a/paludis/environment_implementation.hh
+++ b/paludis/environment_implementation.hh
@@ -78,9 +78,6 @@ namespace paludis
virtual std::shared_ptr<const FSPathSequence> fetchers_dirs() const
PALUDIS_ATTRIBUTE((warn_unused_result));
- virtual std::shared_ptr<const DestinationsSet> default_destinations() const
- PALUDIS_ATTRIBUTE((warn_unused_result));
-
virtual std::string distribution() const
PALUDIS_ATTRIBUTE((warn_unused_result));
diff --git a/paludis/repository-fwd.hh b/paludis/repository-fwd.hh
index 11437763c..4c60666d1 100644
--- a/paludis/repository-fwd.hh
+++ b/paludis/repository-fwd.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2005, 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2005, 2006, 2007, 2008, 2009, 2011 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -46,14 +46,6 @@ namespace paludis
class RepositoryDestinationInterface;
class RepositoryManifestInterface;
- /**
- * A set of destinations, used to decide whether a PackageID can be
- * installed to a particular Repository.
- *
- * \ingroup g_repository
- */
- typedef Set<std::shared_ptr<Repository> > DestinationsSet;
-
struct MergeParams;
}