diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-22 04:46:01 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-22 04:46:01 -0800 |
commit | 75ea62bdc9b1722f2489a8d04fbff8967ba7529d (patch) | |
tree | d34cfa4f48c26d8409ab395ca3efd04c261b94a8 /MobileCydia.mm | |
parent | 7e37a67619923da62b21ca0d4527ccd5ec0bf1b7 (diff) |
Remove obsolete -[Package compareForChanges] (use PackageChangesRadix).
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 950012c..7f05319 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -1807,8 +1807,6 @@ typedef std::map< unsigned long, _H<Source> > SourceMap; - (uint32_t) compareBySection:(NSArray *)sections; -- (uint32_t) compareForChanges; - - (void) install; - (void) remove; @@ -2680,33 +2678,6 @@ struct PackageNameOrdering : return _not(uint32_t); } -- (uint32_t) compareForChanges { - union { - uint32_t key; - - struct { - uint32_t timestamp : 30; - uint32_t ignored : 1; - uint32_t upgradable : 1; - } bits; - } value; - - bool upgradable([self upgradableAndEssential:YES]); - value.bits.upgradable = upgradable ? 1 : 0; - - if (upgradable) { - value.bits.timestamp = 0; - value.bits.ignored = [self ignored] ? 0 : 1; - value.bits.upgradable = 1; - } else { - value.bits.timestamp = static_cast<uint32_t>([[self seen] timeIntervalSince1970]) >> 2; - value.bits.ignored = 0; - value.bits.upgradable = 0; - } - - return _not(uint32_t) - value.key; -} - - (void) clear { @synchronized (database_) { pkgProblemResolver *resolver = [database_ resolver]; |