aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-18 20:10:45 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-04-18 20:10:45 +0100
commitbb06c0f5ac5e7fe01e5ab0a957bc310179eb5bab (patch)
treec929cf1b4e92d8d0ec0b63045dd260700f170ed9 /doc
parent537036d40b9142858d2cf863a5d143498e927640 (diff)
downloadpaludis-bb06c0f5ac5e7fe01e5ab0a957bc310179eb5bab.tar.gz
paludis-bb06c0f5ac5e7fe01e5ab0a957bc310179eb5bab.tar.xz
Don't hold versions, keys, choices in a sequence
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec.cc45
1 files changed, 0 insertions, 45 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec.cc b/doc/api/cplusplus/examples/example_dep_spec.cc
index 57fb2e545..3a2cc5476 100644
--- a/doc/api/cplusplus/examples/example_dep_spec.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec.cc
@@ -68,36 +68,6 @@ int main(int argc, char * argv[])
if (spec.package_name_part_requirement())
cout << " " << left << setw(24) << "Package part:" << " " << spec.package_name_part_requirement()->name_part() << endl;
- if (spec.all_version_requirements() && ! spec.all_version_requirements()->empty())
- {
- cout << " " << left << setw(24) << "Version requirements:" << " ";
- bool need_join(false);
- for (auto r(spec.all_version_requirements()->begin()), r_end(spec.all_version_requirements()->end()) ;
- r != r_end ; ++r)
- {
- if (need_join)
- {
- switch ((*r)->combiner())
- {
- case vrc_and:
- cout << " and ";
- break;
-
- case vrc_or:
- cout << " or ";
- break;
-
- case last_vrc:
- throw InternalError(PALUDIS_HERE, "Bad version_requirements_mode");
- }
- }
-
- cout << (*r)->version_operator() << (*r)->version_spec();
- need_join = true;
- }
- cout << endl;
- }
-
if (spec.exact_slot_requirement())
cout << " " << left << setw(24) << "Slot:" << " " << spec.exact_slot_requirement()->name() << endl;
@@ -123,21 +93,6 @@ int main(int argc, char * argv[])
spec.installable_to_repository_requirement()->name() << ", " <<
spec.installable_to_repository_requirement()->include_masked() << endl;
- if (spec.all_choice_requirements() && ! spec.all_choice_requirements()->empty())
- {
- cout << " " << left << setw(24) << "Choice requirements:" << " ";
- bool need_join(false);
- for (auto u(spec.all_choice_requirements()->begin()), u_end(spec.all_choice_requirements()->end()) ; u != u_end ; ++u)
- {
- if (need_join)
- cout << " and ";
-
- cout << (*u)->as_raw_string() + " (meaning: " + (*u)->as_human_string(make_null_shared_ptr()) + ")";
- need_join = true;
- }
- cout << endl;
- }
-
/* And display packages matching that spec */
cout << " " << left << setw(24) << "Matches:" << " ";
std::shared_ptr<const PackageIDSequence> ids((*env)[selection::AllVersionsSorted(