removed unused SaveBetterEditionArch
authorJán Kupec <jkupec@suse.cz>
Sun, 28 Mar 2010 09:32:50 +0000 (11:32 +0200)
committerJán Kupec <jkupec@suse.cz>
Sun, 28 Mar 2010 09:32:50 +0000 (11:32 +0200)
src/PackageArgs.cc
src/PackageArgs.h
src/update.cc

index b914444..5955e19 100644 (file)
@@ -36,6 +36,8 @@ PackageArgs::PackageArgs(
   argsToCaps(kind);
 }
 
+// ---------------------------------------------------------------------------
+
 void PackageArgs::preprocess(const vector<string> & args)
 {
   vector<string>::size_type argc = args.size();
@@ -100,6 +102,8 @@ void PackageArgs::preprocess(const vector<string> & args)
   DBG << endl;
 }
 
+// ---------------------------------------------------------------------------
+
 void PackageArgs::argsToCaps(const zypp::ResKind & kind)
 {
   bool dont;
index d4d91ed..2470f63 100644 (file)
@@ -46,6 +46,7 @@ public:
   { return _dont_caps; }
 
 protected:
+  /** join arguments at comparison operators ('=', '>=', and the like) */
   void preprocess(const std::vector<std::string> & args);
   void argsToCaps(const zypp::ResKind & kind);
 
index b22a3d2..131d9c3 100755 (executable)
@@ -278,26 +278,6 @@ public:
   }
 };
 
-class SaveBetterEditionArch
-{
-public:
-  PoolItem best;
-
-  bool operator()(PoolItem provider)
-  {
-    if (!provider.status().isLocked() // is not locked (taboo)
-        && (!best                     // first match
-            // or a better architecture
-            || best->arch().compare(provider->arch()) < 0
-            // or a better edition than so-far-found
-            || best->edition().compare(provider->edition()) < 0))
-    {
-      best = provider;
-    }
-    return true;
-  }
-};
-
 // ----------------------------------------------------------------------------
 
 /**