summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-05-06 22:42:08 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:01 +0000
commit11108eb618b2b1e5244056d1605ea3e459b07054 (patch)
treed4dd0ab4dbcb7de8705128c401d3aa65719ea9a9
parentbbb879fba446d8bf7980e66cc4d9c44c3e23fa32 (diff)
Subtle code cleanup.
-rw-r--r--Cydia.mm26
1 files changed, 6 insertions, 20 deletions
diff --git a/Cydia.mm b/Cydia.mm
index d415970..696054e 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -4061,28 +4061,14 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString
}
switch (tag) {
- case 1:
- [self _setHomePage];
- break;
-
- case 2:
- [self setPage:install_];
- break;
+ case 1: [self _setHomePage]; break;
- case 3:
- [self setPage:changes_];
- break;
+ case 2: [self setPage:install_]; break;
+ case 3: [self setPage:changes_]; break;
+ case 4: [self setPage:manage_]; break;
+ case 5: [self setPage:search_]; break;
- case 4:
- [self setPage:manage_];
- break;
-
- case 5:
- [self setPage:search_];
- break;
-
- default:
- _assert(false);
+ default: _assert(false);
}
tag_ = tag;