added app list backup, helper shell scripts
[fapman] / aaptinterface.cpp
index fc4e616..8e00119 100644 (file)
@@ -1599,7 +1599,6 @@ void AAptInterface::removeFromBlacklist(Package *pkg, BlacklistSelect::blackList
                return;
        }
 
-       //QStringList newlist;
        bool removed = false;
 
        for( int i=0; i<iBlacklist.count(); i++ )
@@ -1618,20 +1617,6 @@ void AAptInterface::removeFromBlacklist(Package *pkg, BlacklistSelect::blackList
                                removed = true;
                        }
                }
-
-               /*
-               if( oldstate == BlacklistSelect::BlacklistAll )
-               {
-                       if( !(iBlacklist.at(i) == pkg->name()) ) {
-                               newlist << iBlacklist.at(i);
-                       } else removed = true;
-               } else if( oldstate == BlacklistSelect::BlacklistThis ) {
-                       if( !(iBlacklist.at(i) == (pkg->name()+" "+pkg->version())) ) {
-                               newlist << iBlacklist.at(i);
-                       } else removed = true;
-               } else {
-                       newlist << iBlacklist.at(i);
-               }*/
        }
 
        if( removed )
@@ -1639,7 +1624,6 @@ void AAptInterface::removeFromBlacklist(Package *pkg, BlacklistSelect::blackList
        else
                qDebug() << "blacklist:" << pkg->name() << "not in saved list";
 
-       //iBlacklist = newlist;
 }