summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-02-26 16:31:25 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-26 16:31:25 +0100
commit3b13b8a0b79d625d2913518529a34e92b4f41539 (patch)
tree404745c04c1eb4548bd6151034229c98d97d36f6 /apt-pkg/algorithms.cc
parent4935c8af8acd8856211c0a527bf4dec4dace0d08 (diff)
parente1024dc0acf72b9615c0821f005364543775a58a (diff)
Merge branch 'pu/abi6'
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r--apt-pkg/algorithms.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index bb0e2f873..4d4adde3c 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -1343,32 +1343,6 @@ bool pkgProblemResolver::ResolveByKeepInternal()
return true;
}
/*}}}*/
-// ProblemResolver::InstallProtect - deprecated cpu-eating no-op /*{{{*/
-// ---------------------------------------------------------------------
-/* Actions issued with FromUser bit set are protected from further
- modification (expect by other calls with FromUser set) nowadays , so we
- don't need to reissue actions here, they are already set in stone. */
-void pkgProblemResolver::InstallProtect()
-{
- pkgDepCache::ActionGroup group(Cache);
-
- for (pkgCache::PkgIterator I = Cache.PkgBegin(); I.end() == false; ++I)
- {
- if ((Flags[I->ID] & Protected) == Protected)
- {
- if ((Flags[I->ID] & ToRemove) == ToRemove)
- Cache.MarkDelete(I);
- else
- {
- // preserve the information whether the package was auto
- // or manually installed
- bool autoInst = (Cache[I].Flags & pkgCache::Flag::Auto);
- Cache.MarkInstall(I, false, 0, !autoInst);
- }
- }
- }
-}
- /*}}}*/
// PrioSortList - Sort a list of versions by priority /*{{{*/
// ---------------------------------------------------------------------
/* This is meant to be used in conjunction with AllTargets to get a list