From c626a63f510ec0bcca2fa3f4b4c506ef2f507270 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 15 Nov 2010 15:10:06 -0800 Subject: [PATCH] Move around usages of _trace() for greater understanding. --- MobileCydia.mm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index b7d64e33..8b0ae707 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3338,8 +3338,6 @@ static NSString *Warning_; return; } - _trace(); - for (pkgSourceList::const_iterator source = list_->begin(); source != list_->end(); ++source) { std::vector *indices = (*source)->GetIndexFiles(); for (std::vector::const_iterator index = indices->begin(); index != indices->end(); ++index) @@ -3351,8 +3349,6 @@ static NSString *Warning_; } } - _trace(); - { /*std::vector packages; packages.reserve(std::max(10000U, [packages_ count] + 1000)); @@ -3396,8 +3392,7 @@ static NSString *Warning_; _trace(); } -} -} CYPoolEnd() } +} } CYPoolEnd() _trace(); } - (void) configure { NSString *dpkg = [NSString stringWithFormat:@"dpkg --configure -a --status-fd %u", statusfd_]; @@ -8106,7 +8101,6 @@ static _finline void _setHomePage(Cydia *self) { [hud setText:UCLocalize("RELOADING_DATA")]; [database_ yieldToSelector:@selector(reloadData) withObject:nil]; - _trace(); if (hud) [self removeProgressHUD:hud]; @@ -8730,9 +8724,11 @@ static _finline void _setHomePage(Cydia *self) { [[container_ view] setBackgroundColor:[UIColor pinStripeColor]]; [self performSelector:@selector(loadData) withObject:nil afterDelay:0]; +_trace(); } - (void) loadData { +_trace(); if (Role_ == nil) { [self showSettings]; return; @@ -9016,7 +9012,6 @@ int main(int argc, char *argv[]) { _pooled Metadata_ = [[[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/lib/cydia/metadata.plist"] autorelease]; _trace(); SectionMap_ = [[[NSDictionary alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Sections" ofType:@"plist"]] autorelease]; - _trace(); if (Metadata_ == NULL) Metadata_ = [NSMutableDictionary dictionaryWithCapacity:2]; -- 2.45.2