aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-26 19:35:07 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-03-26 19:35:07 +0000
commit69e45b3ba4173d913c24f681b8b4d8141e07c3d0 (patch)
tree338ba50dc8b9af06d2e5e9e309b4c233429fa6ba
parent1b7c77f752e38dd36142f5fb8e07cfa96bebe855 (diff)
downloadpaludis-69e45b3ba4173d913c24f681b8b4d8141e07c3d0.tar.gz
paludis-69e45b3ba4173d913c24f681b8b4d8141e07c3d0.tar.xz
fetch_package_id isn't used
-rw-r--r--paludis/environments/test/test_environment.cc14
-rw-r--r--paludis/environments/test/test_environment.hh6
2 files changed, 0 insertions, 20 deletions
diff --git a/paludis/environments/test/test_environment.cc b/paludis/environments/test/test_environment.cc
index aacb552..6e3816f 100644
--- a/paludis/environments/test/test_environment.cc
+++ b/paludis/environments/test/test_environment.cc
@@ -99,20 +99,6 @@ TestEnvironment::accept_license(const std::string &, const std::shared_ptr<const
return true;
}
-const std::shared_ptr<const PackageID>
-TestEnvironment::fetch_package_id(const QualifiedPackageName & q,
- const VersionSpec & v, const RepositoryName & r) const
-{
- using namespace std::placeholders;
-
- std::shared_ptr<const PackageIDSequence> ids(fetch_repository(r)->package_ids(q, { }));
- for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
- i != i_end ; ++i)
- if (v == (*i)->version())
- return *i;
- throw NoSuchPackageError(stringify(q) + "-" + stringify(v) + "::" + stringify(r));
-}
-
uid_t
TestEnvironment::reduced_uid() const
{
diff --git a/paludis/environments/test/test_environment.hh b/paludis/environments/test/test_environment.hh
index d8abeac..48c69af 100644
--- a/paludis/environments/test/test_environment.hh
+++ b/paludis/environments/test/test_environment.hh
@@ -60,12 +60,6 @@ namespace paludis
///\}
- /**
- * Convenience way of getting a package id.
- */
- const std::shared_ptr<const PackageID> fetch_package_id(const QualifiedPackageName &,
- const VersionSpec &, const RepositoryName &) const PALUDIS_ATTRIBUTE((warn_unused_result));
-
virtual bool accept_license(const std::string &, const std::shared_ptr<const PackageID> &) const
PALUDIS_ATTRIBUTE((warn_unused_result));