aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 aacb55293..6e3816f17 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 d8abeac1f..48c69afa7 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));