Browse files

Cleanups

  • Loading branch information...
1 parent e7a3ca6 commit b3c1c6af6d03b96f1c5e38daba43ca92bb8f654f @dennisreimann committed Jun 14, 2013
View
5 Classes/GHGistComments.m
@@ -18,9 +18,8 @@ - (id)initWithGist:(GHGist *)gist {
return self;
}
-- (NSURL *)resourcePath {
- // Dynamic resourcePath, because it depends on the
- // gist id which isn't always available in advance
+- (NSString *)resourcePath {
+ // Dynamic resourcePath, because it depends on the gist id which isn't always available in advance
return [NSString stringWithFormat:kGistCommentsFormat, self.gist.gistId];
}
View
2 Classes/GHIssueComments.m
@@ -19,7 +19,7 @@ - (id)initWithParent:(id)parent {
}
// Dynamic resourcePath, because it depends on the issue num which isn't always available in advance
-- (NSURL *)resourcePath {
+- (NSString *)resourcePath {
GHRepository *repo = [(GHIssue *)self.parent repository];
NSUInteger num = [(GHIssue *)self.parent number];
return [NSString stringWithFormat:kIssueCommentsFormat, repo.owner, repo.name, num];
View
2 Classes/GHPullRequestReviewComments.m
@@ -19,7 +19,7 @@ - (id)initWithParent:(id)parent {
}
// Dynamic resourcePath, because it depends on the issue num which isn't always available in advance
-- (NSURL *)resourcePath {
+- (NSString *)resourcePath {
return [NSString stringWithFormat:kGHPullRequestCommentsFormat, self.parent.repository.owner, self.parent.repository.name, self.parent.number];
}
View
2 Classes/GHRepoComments.m
@@ -19,7 +19,7 @@ - (id)initWithRepo:(GHRepository *)repo andCommitID:(NSString *)commitID {
return self;
}
-- (NSURL *)resourcePath {
+- (NSString *)resourcePath {
// Dynamic resourcePath, because it depends on the
// SHA which isn't always available in advance
return [NSString stringWithFormat:kRepoCommentsFormat, self.repository.owner, self.repository.name, self.commitID];
View
3 Classes/IOCCommitController.m
@@ -342,8 +342,7 @@ - (BOOL)tableView:(UITableView *)tableView canPerformAction:(SEL)action forRowAt
return [cell isKindOfClass:IOCTextCell.class] && action == @selector(copy:);
}
-- (BOOL)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
- return YES;
+- (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
}
#pragma mark Responder
View
3 Classes/IOCGistController.m
@@ -338,8 +338,7 @@ - (BOOL)tableView:(UITableView *)tableView canPerformAction:(SEL)action forRowAt
return [cell isKindOfClass:IOCTextCell.class] && action == @selector(copy:);
}
-- (BOOL)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
- return YES;
+- (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
}
@end
View
3 Classes/IOCIssueController.m
@@ -342,8 +342,7 @@ - (BOOL)tableView:(UITableView *)tableView canPerformAction:(SEL)action forRowAt
return [cell isKindOfClass:IOCTextCell.class] && action == @selector(copy:);
}
-- (BOOL)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
- return YES;
+- (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
}
@end
View
6 Classes/IOCOrganizationController.m
@@ -110,9 +110,9 @@ - (void)displayOrganization {
self.nameLabel.text = (!self.organization.name || self.organization.name.isEmpty) ? self.organization.login : self.organization.name;
self.reposCountLabel.text = [NSString stringWithFormat:@"%d repositories", self.organization.publicRepoCount];
if (self.organization.gravatar) self.gravatarView.image = self.organization.gravatar;
- [self.locationCell setContentText:self.organization.location];
- [self.blogCell setContentText:[self.organization.blogURL host]];
- [self.emailCell setContentText:self.organization.email];
+ self.locationCell.contentText = self.organization.location;
+ self.blogCell.contentText = self.organization.blogURL.host;
+ self.emailCell.contentText = self.organization.email;
}
- (void)displayOrganizationChange {
View
3 Classes/IOCPullRequestController.m
@@ -414,8 +414,7 @@ - (BOOL)tableView:(UITableView *)tableView canPerformAction:(SEL)action forRowAt
return [cell isKindOfClass:IOCTextCell.class] && action == @selector(copy:);
}
-- (BOOL)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
- return YES;
+- (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
}
@end
View
6 Classes/IOCUserController.m
@@ -134,9 +134,9 @@ - (void)displayUser {
self.nameLabel.text = (!self.user.name || self.user.name.isEmpty) ? self.user.login : self.user.name;
self.companyLabel.text = (!self.user.company || self.user.company.isEmpty) ? [NSString stringWithFormat:self.user.followersCount == 1 ? NSLocalizedString(@"%d follower", @"User: Single follower") : NSLocalizedString(@"%d followers", @"User: Multiple followers"), self.user.followersCount] : self.user.company;
if (self.user.gravatar) self.gravatarView.image = self.user.gravatar;
- [self.locationCell setContentText:self.user.location];
- [self.blogCell setContentText:self.user.blogURL.host];
- [self.emailCell setContentText:self.user.email];
+ self.locationCell.contentText = self.user.location;
+ self.blogCell.contentText = self.user.blogURL.host;
+ self.emailCell.contentText = self.user.email;
}
- (void)displayUserChange {

0 comments on commit b3c1c6a

Please sign in to comment.