FillTable moved to zypper-search.h
authorJan Kupec <jkupec@suse.cz>
Fri, 27 Oct 2006 11:58:38 +0000 (11:58 +0000)
committerJan Kupec <jkupec@suse.cz>
Fri, 27 Oct 2006 11:58:38 +0000 (11:58 +0000)
src/zmart-misc.cc
src/zmart-misc.h

index ff57c87..7aa200a 100644 (file)
@@ -3,7 +3,6 @@
 #include <boost/format.hpp>
 #include "zmart.h"
 #include "zmart-misc.h"
-#include "zypper-tabulator.h"
 
 #include <zypp/Patch.h>
 #include <zypp/base/Algorithm.h>
index 5d571eb..be23c8b 100644 (file)
@@ -56,31 +56,4 @@ struct ProvideProcess
   bool operator()( const zypp::PoolItem& provider );
 };
 
-
-/**
- * Functor for filling search output table. 
- */
-struct FillTable
-{
-  FillTable( Table & table ) : _table( &table ) {
-    TableHeader header;
-    header << "S" << "Catalog" << "Bundle" << "Name" << "Version" << "Arch";
-    *_table << header; 
-  }
-
-  void operator()(const zypp::PoolItem & pool_item) const {
-    TableRow row;
-    row << (pool_item.status().isInstalled() ? "i" : "")
-        << pool_item.resolvable()->source().alias()
-        << "" // TODO what about rug's Bundle?
-        << pool_item.resolvable()->name()
-        << pool_item.resolvable()->edition().asString()
-        << pool_item.resolvable()->arch().asString();
-  
-    *_table << row;
-  }
-
-  Table * _table; // != NULL asserted by ctor
-};
-
 #endif