aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-12 00:42:26 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-12 00:42:26 +0100
commitc87b7d1425a65754ca48ff5b95859ac5686aea0d (patch)
treeb367b4d3452b78ba24e2ce778c08a7d273d609e1
parent37c884ee1613e14347d3604e316adae68c4d67b7 (diff)
downloadpaludis-c87b7d1425a65754ca48ff5b95859ac5686aea0d.tar.gz
paludis-c87b7d1425a65754ca48ff5b95859ac5686aea0d.tar.xz
Remove fake provides
-rw-r--r--paludis/repositories/fake/dep_parser.cc31
-rw-r--r--paludis/repositories/fake/dep_parser.hh6
-rw-r--r--paludis/repositories/fake/fake_package_id.cc1
3 files changed, 0 insertions, 38 deletions
diff --git a/paludis/repositories/fake/dep_parser.cc b/paludis/repositories/fake/dep_parser.cc
index b8fe714..02de94d 100644
--- a/paludis/repositories/fake/dep_parser.cc
+++ b/paludis/repositories/fake/dep_parser.cc
@@ -196,37 +196,6 @@ paludis::fakerepository::parse_depend(const std::string & s, const Environment *
return top;
}
-std::shared_ptr<ProvideSpecTree>
-paludis::fakerepository::parse_provide(const std::string & s, const Environment * const)
-{
- using namespace std::placeholders;
-
- ParseStackTypes<ProvideSpecTree>::Stack stack;
- std::shared_ptr<ProvideSpecTree> top(std::make_shared<ProvideSpecTree>(std::make_shared<AllDepSpec>()));
- stack.push_front(top->top());
-
- ELikeDepParserCallbacks callbacks(
- make_named_values<ELikeDepParserCallbacks>(
- n::on_all() = std::bind(&any_all_handler<ProvideSpecTree, AllDepSpec>, std::ref(stack)),
- n::on_annotations() = &discard_annotations,
- n::on_any() = std::bind(&any_not_allowed_handler, s),
- n::on_arrow() = std::bind(&arrows_not_allowed_handler, s, _1, _2),
- n::on_error() = std::bind(&error_handler, s, _1),
- n::on_exactly_one() = std::bind(&exactly_one_not_allowed_handler, s),
- n::on_label() = std::bind(&labels_not_allowed_handler, s, _1),
- n::on_no_annotations() = &do_nothing,
- n::on_pop() = std::bind(&pop_handler<ProvideSpecTree>, std::ref(stack), s),
- n::on_should_be_empty() = std::bind(&should_be_empty_handler<ProvideSpecTree>, std::ref(stack), s),
- n::on_string() = std::bind(&package_dep_spec_string_handler<ProvideSpecTree>, std::ref(stack), _1),
- n::on_use() = std::bind(&use_handler<ProvideSpecTree>, std::ref(stack), _1),
- n::on_use_under_any() = &do_nothing
- ));
-
- parse_elike_dependencies(s, callbacks, { });
-
- return top;
-}
-
std::shared_ptr<FetchableURISpecTree>
paludis::fakerepository::parse_fetchable_uri(const std::string & s, const Environment * const)
{
diff --git a/paludis/repositories/fake/dep_parser.hh b/paludis/repositories/fake/dep_parser.hh
index 0dd47fb..360a64f 100644
--- a/paludis/repositories/fake/dep_parser.hh
+++ b/paludis/repositories/fake/dep_parser.hh
@@ -49,12 +49,6 @@ namespace paludis
const Environment * const) PALUDIS_VISIBLE;
/**
- * Parse a provide heirarchy.
- */
- std::shared_ptr<ProvideSpecTree> parse_provide(const std::string & s,
- const Environment * const) PALUDIS_VISIBLE;
-
- /**
* Parse a fetchable uri heirarchy.
*/
std::shared_ptr<FetchableURISpecTree> parse_fetchable_uri(const std::string & s,
diff --git a/paludis/repositories/fake/fake_package_id.cc b/paludis/repositories/fake/fake_package_id.cc
index 2c7a89b..a63ddf0 100644
--- a/paludis/repositories/fake/fake_package_id.cc
+++ b/paludis/repositories/fake/fake_package_id.cc
@@ -1192,7 +1192,6 @@ FakePackageID::behaviours_set()
}
template class FakeMetadataSpecTreeKey<LicenseSpecTree>;
-template class FakeMetadataSpecTreeKey<ProvideSpecTree>;
template class FakeMetadataSpecTreeKey<PlainTextSpecTree>;
#ifndef PALUDIS_NO_EXPLICIT_FULLY_SPECIALISED
template class FakeMetadataSpecTreeKey<FetchableURISpecTree>;