From 2089799747c7ba078205b8e32426118887d627bf Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 18 Nov 2010 15:42:43 -0800 Subject: [PATCH] Remove Package::required_, an unimplemented feature. --- MobileCydia.mm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 6bbab279..cb5df28d 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -1708,7 +1708,6 @@ typedef std::map< unsigned long, _H > 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()); } -- 2.45.2