diff options
author | 2011-03-25 18:05:34 +0000 | |
---|---|---|
committer | 2011-03-25 18:05:34 +0000 | |
commit | 394ca5b5149869e774c8664c034dd9d35c75273f (patch) | |
tree | bad35cf42b1a033746599c7d14396da21872dc7d /doc | |
parent | bf3ada970ee7a445868c6763d2e6e2d036aea608 (diff) | |
download | paludis-394ca5b5149869e774c8664c034dd9d35c75273f.tar.gz paludis-394ca5b5149869e774c8664c034dd9d35c75273f.tar.xz |
No need for favourite_repository
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cplusplus/examples/example_package_database.cc | 5 | ||||
-rw-r--r-- | doc/api/ruby/example_package_database.rb | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/doc/api/cplusplus/examples/example_package_database.cc b/doc/api/cplusplus/examples/example_package_database.cc index 87ab20f43..ddbc38ec3 100644 --- a/doc/api/cplusplus/examples/example_package_database.cc +++ b/doc/api/cplusplus/examples/example_package_database.cc @@ -48,11 +48,6 @@ int main(int argc, char * argv[]) (repo->format_key() ? repo->format_key()->value() : "") << "'" << endl; } - /* Our favourite repository is the least important non-special (e.g. - * virtual) installable repository. Some clients use this as a hint to - * not display a ::repository suffix for things from this repository. */ - cout << "Our favourite repository is '" << env->package_database()->favourite_repository() << "'" << endl; - /* Users often expect to be able to refer to a package by its name part * only (e.g. 'foo' rather than 'app-misc/foo'). This has to be * disambiguated as follows: */ diff --git a/doc/api/ruby/example_package_database.rb b/doc/api/ruby/example_package_database.rb index d5b3028aa..6c7a17ec0 100644 --- a/doc/api/ruby/example_package_database.rb +++ b/doc/api/ruby/example_package_database.rb @@ -23,8 +23,6 @@ if env.package_database.has_repository_named?('gentoo') (repo.format_key ? repo.format_key.value : '') + "'" end -puts "Our favourite repository is '#{env.package_database.favourite_repository}'" - begin name = env.package_database.fetch_unique_qualified_package_name('git') puts "The only package named 'git' is '#{name}'" |