diff options
author | 2011-06-12 00:42:26 +0100 | |
---|---|---|
committer | 2011-06-12 00:42:26 +0100 | |
commit | c87b7d1425a65754ca48ff5b95859ac5686aea0d (patch) | |
tree | b367b4d3452b78ba24e2ce778c08a7d273d609e1 /paludis | |
parent | 37c884ee1613e14347d3604e316adae68c4d67b7 (diff) | |
download | paludis-c87b7d1425a65754ca48ff5b95859ac5686aea0d.tar.gz paludis-c87b7d1425a65754ca48ff5b95859ac5686aea0d.tar.xz |
Remove fake provides
Diffstat (limited to 'paludis')
-rw-r--r-- | paludis/repositories/fake/dep_parser.cc | 31 | ||||
-rw-r--r-- | paludis/repositories/fake/dep_parser.hh | 6 | ||||
-rw-r--r-- | paludis/repositories/fake/fake_package_id.cc | 1 |
3 files changed, 0 insertions, 38 deletions
diff --git a/paludis/repositories/fake/dep_parser.cc b/paludis/repositories/fake/dep_parser.cc index b8fe71480..02de94d0d 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 0dd47fb12..360a64f04 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 2c7a89bd1..a63ddf01c 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>; |