aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/fake/fake_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-26 21:02:30 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-11-26 21:02:30 +0000
commit8c38f206f44258bc6d0e30829a869fc474bdcb8f (patch)
tree8003b3f8dfe04a3d2caf8c869a4447000f187cdd /paludis/repositories/fake/fake_repository.cc
parentc8ac388f675660cfd7fa697bac51c4927d84dbf3 (diff)
downloadpaludis-8c38f206f44258bc6d0e30829a869fc474bdcb8f.tar.gz
paludis-8c38f206f44258bc6d0e30829a869fc474bdcb8f.tar.xz
Kill mirrors interface
Diffstat (limited to 'paludis/repositories/fake/fake_repository.cc')
-rw-r--r--paludis/repositories/fake/fake_repository.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/paludis/repositories/fake/fake_repository.cc b/paludis/repositories/fake/fake_repository.cc
index fc38ae28b..e2da44103 100644
--- a/paludis/repositories/fake/fake_repository.cc
+++ b/paludis/repositories/fake/fake_repository.cc
@@ -41,8 +41,6 @@ namespace paludis
struct Implementation<FakeRepository>
{
std::tr1::shared_ptr<FakeRepository::VirtualsSequence> virtual_packages;
- std::map<std::string, std::string> mirrors;
-
std::tr1::shared_ptr<const MetadataValueKey<std::string> > format_key;
Implementation() :
@@ -50,8 +48,6 @@ namespace paludis
format_key(new LiteralMetadataValueKey<std::string> (
"format", "format", mkt_significant, "fake"))
{
- mirrors.insert(std::make_pair("example", "http://fake-example/fake-example/"));
- mirrors.insert(std::make_pair("repo", "http://fake-repo/fake-repo/"));
}
};
}
@@ -63,7 +59,6 @@ FakeRepository::FakeRepository(const FakeRepositoryParams & params) :
value_for<n::environment_variable_interface>(static_cast<RepositoryEnvironmentVariableInterface *>(0)),
value_for<n::make_virtuals_interface>(static_cast<RepositoryMakeVirtualsInterface *>(0)),
value_for<n::manifest_interface>(static_cast<RepositoryManifestInterface *>(0)),
- value_for<n::mirrors_interface>(this),
value_for<n::provides_interface>(static_cast<RepositoryProvidesInterface *>(0)),
value_for<n::virtuals_interface>((*DistributionData::get_instance()->distribution_from_string(
params.environment()->distribution())).support_old_style_virtuals() ? this : 0)
@@ -145,18 +140,6 @@ FakeRepository::some_ids_might_support_action(const SupportsActionTestBase & a)
return a.accept_returning<bool>(q);
}
-FakeRepository::MirrorsConstIterator
-FakeRepository::begin_mirrors(const std::string & s) const
-{
- return MirrorsConstIterator(_imp->mirrors.equal_range(s).first);
-}
-
-FakeRepository::MirrorsConstIterator
-FakeRepository::end_mirrors(const std::string & s) const
-{
- return MirrorsConstIterator(_imp->mirrors.equal_range(s).second);
-}
-
const std::tr1::shared_ptr<const MetadataValueKey<std::string> >
FakeRepository::format_key() const
{