]> git.saurik.com Git - cydia.git/commitdiff
Remove Package::required_, an unimplemented feature.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 18 Nov 2010 23:42:43 +0000 (15:42 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 18 Nov 2010 23:42:43 +0000 (15:42 -0800)
MobileCydia.mm

index 6bbab2792603f484a06b481650bf9410b7d76510..cb5df28d6a767316039b4f94c60d68951de2f30f 100644 (file)
@@ -1708,7 +1708,6 @@ typedef std::map< unsigned long, _H<Source> > SourceMap;
     CYString section_;
     _transient NSString *section$_;
     bool essential_;
-    bool required_;
     bool visible_;
     bool obsolete_;
 
@@ -2070,7 +2069,7 @@ struct PackageNameOrdering :
 }
 
 - (void) setVisible {
-    visible_ = required_ && [self unfiltered];
+    visible_ = [self unfiltered];
 }
 
 - (Package *) initWithVersion:(pkgCache::VerIterator)version withZone:(NSZone *)zone inPool:(apr_pool_t *)pool database:(Database *)database {
@@ -2118,8 +2117,6 @@ struct PackageNameOrdering :
                 data[i] |= 0x20;
         _end
 
-        required_ = true;
-
         _profile(Package$initWithVersion$Tags)
             pkgCache::TagIterator tag(iterator_.TagList());
             if (!tag.end()) {
@@ -2129,10 +2126,6 @@ struct PackageNameOrdering :
                     [tags_ addObject:[(NSString *)CYStringCreate(name) autorelease]];
                     if (role_ == nil && strncmp(name, "role::", 6) == 0 /*&& strcmp(name, "role::leaper") != 0*/)
                         role_ = (NSString *) CYStringCreate(name + 6);
-                    if (required_ && strncmp(name, "require::", 9) == 0 && (
-                        true
-                    ))
-                        required_ = false;
                     ++tag;
                 } while (!tag.end());
             }