]> git.saurik.com Git - apt.git/commitdiff
remove two unused variables gcc-4.6 reports from depcache.cc
authorDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 12 Jan 2011 22:23:36 +0000 (23:23 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Wed, 12 Jan 2011 22:23:36 +0000 (23:23 +0100)
apt-pkg/depcache.cc

index d2557386dc38db990148e9f9c56f22b9480bd145..5f59b6d49fc29634c289fb96a32e35dfc19bbec4 100644 (file)
@@ -1330,8 +1330,6 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
           for (DepIterator D = instVer.DependsList(); D.end() != true; D++)
             {
               //FIXME: deal better with or-groups(?)
-              DepIterator LocalStart = D;
-
               if(IsImportantDep(D) && !D.IsCritical() &&
                  Start.TargetPkg() == D.TargetPkg())
                 {
@@ -1921,10 +1919,11 @@ void pkgDepCache::MarkPackage(const pkgCache::PkgIterator &pkg,
       return;
 
    VerIterator const currver = pkg.CurrentVer();
-   VerIterator const candver = state.CandidateVerIter(*this);
    VerIterator const instver = state.InstVerIter(*this);
 
 #if 0
+   VerIterator const candver = state.CandidateVerIter(*this);
+
    // If a package was garbage-collected but is now being marked, we
    // should re-select it 
    // For cases when a pkg is set to upgrade and this trigger the