summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-01-01 17:18:29 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-01-10 12:40:31 -0800
commit2e174efd4d421cd1727bbe455796277dca0d9c89 (patch)
tree9500d8876d920cc99114ee518d04a794bc835242 /MobileCydia.mm
parentd2741c0ab9a7fac6d5cbbdac5dbc2576cb779769 (diff)
Remove SourceCell::description_ and hard-code height.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm14
1 files changed, 1 insertions, 13 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index b8a174b..6cbb164 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -5913,7 +5913,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
> {
UIImage *icon_;
NSString *origin_;
- NSString *description_;
NSString *label_;
}
@@ -5926,12 +5925,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
- (void) clearSource {
[icon_ release];
[origin_ release];
- [description_ release];
[label_ release];
icon_ = nil;
origin_ = nil;
- description_ = nil;
label_ = nil;
}
@@ -5946,7 +5943,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
origin_ = [[source name] retain];
label_ = [[source uri] retain];
- description_ = [[source description] retain];
[content_ setNeedsDisplay];
}
@@ -5988,10 +5984,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if (!highlighted)
UISetColor(Blue_);
[label_ drawAtPoint:CGPointMake(58, 29) forWidth:(width - 95) withFont:Font12_ lineBreakMode:UILineBreakModeTailTruncation];
-
- if (!highlighted)
- UISetColor(Gray_);
- [description_ drawAtPoint:CGPointMake(12, 46) forWidth:(width - 40) withFont:Font14_ lineBreakMode:UILineBreakModeTailTruncation];
}
@end
@@ -6093,11 +6085,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
return [sources_ objectAtIndex:idx];
}
-- (CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
- Source *source = [self sourceAtIndexPath:indexPath];
- return [source description] == nil ? 56 : 73;
-}
-
- (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"SourceCell";
@@ -6354,6 +6341,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
list_ = [[UITableView alloc] initWithFrame:[[self view] bounds] style:UITableViewStylePlain];
[list_ setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
+ [list_ setRowHeight:56];
[[self view] addSubview:list_];
[list_ setDataSource:self];