From d7e9f0779043814d6e7a4141170fa7f18cd90803 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 28 Aug 2021 19:22:26 +0200 Subject: 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 --- apt-pkg/depcache.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'apt-pkg/depcache.h') 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 -- cgit v1.2.3-70-g09d2