aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-12 00:30:01 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-12 00:30:01 +0100
commit619b3fb210b172bb0405b02ad341cb570bff1184 (patch)
tree7458a1fa65f01f8d074260d6ce02b843b40f5658 /doc
parentba3ce12a94ff45cadbffbfe6bc832ba693fbf08e (diff)
downloadpaludis-619b3fb210b172bb0405b02ad341cb570bff1184.tar.gz
paludis-619b3fb210b172bb0405b02ad341cb570bff1184.tar.xz
Remove provide_key
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec_flattener.cc21
1 files changed, 2 insertions, 19 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
index f50884151..e7768509f 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -52,25 +52,8 @@ int main(int argc, char * argv[])
{
cout << "Information about '" << **i << "':" << endl;
- /* Do we have a provides key? All PackageID key methods may return a
- * zero pointer. */
- if ((*i)->provide_key())
- {
- /* Create our flattener... */
- DepSpecFlattener<ProvideSpecTree, PackageDepSpec> provides(env.get(), *i);
-
- /* Populate it by making it visit the key's value */
- (*i)->provide_key()->parse_value()->top()->accept(provides);
-
- /* The results are available through DepSpecFlattener::begin()
- * and ::end(). These return an iterator to a std::shared_ptr<>,
- * so we use indirect_iterator to add a level of dereferencing.*/
- cout << " " << left << setw(24) << "Provides:" << " "
- << join(indirect_iterator(provides.begin()), indirect_iterator(provides.end()), " ")
- << endl;
- }
-
- /* Again for homepage */
+ /* Do we have a homepage? All PackageID key methods may return a
+ * null pointer. */
if ((*i)->homepage_key())
{
DepSpecFlattener<SimpleURISpecTree, SimpleURIDepSpec> homepages(env.get(), *i);