diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2021-08-28 19:22:26 +0200 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2021-08-28 22:21:35 +0200 |
| commit | d7e9f0779043814d6e7a4141170fa7f18cd90803 (patch) | |
| tree | 3c124b23238938c145ca3190fbf51357a5d7b1b2 /apt-pkg/depcache.h | |
| parent | b104891d015d0b8e152d8ac723027f824077948a (diff) | |
Move hidden MarkPackage to a static function
We can't have external users as its marked hidden and as we don't even
have users outside of pkgDepCache itself we can remove the function
completely from the public eye. That adds many new parameters, but it
also allows to add a few more like avoiding constantly checking the
debug config value.
Gbp-Dch: Ignore
Diffstat (limited to 'apt-pkg/depcache.h')
| -rw-r--r-- | apt-pkg/depcache.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/apt-pkg/depcache.h b/apt-pkg/depcache.h index e0c5c4069..be27b1d77 100644 --- a/apt-pkg/depcache.h +++ b/apt-pkg/depcache.h @@ -71,31 +71,6 @@ class APT_PUBLIC pkgDepCache : protected pkgCache::Namespace }; private: - /** \brief Mark a single package and all its unmarked important - * dependencies during mark-and-sweep. - * - * Recursively invokes itself to mark all dependencies of the - * package. - * - * \param pkg The package to mark. - * - * \param ver The version of the package that is to be marked. - * - * \param follow_recommends If \b true, recommendations of the - * package will be recursively marked. - * - * \param follow_suggests If \b true, suggestions of the package - * will be recursively marked. - * - * \param reason The reason why the package is being marked. - * (Used in logging when Debug::pkgAutoRemove is set.) - */ - APT_HIDDEN void MarkPackage(const pkgCache::PkgIterator &pkg, - const pkgCache::VerIterator &ver, - bool const &follow_recommends, - bool const &follow_suggests, - const char *reason); - /** \brief Update the Marked field of all packages. * * Each package's StateCache::Marked field will be set to \b true |
