Skip to content

Commit c49c029

Browse files
committed
Change PBGitGrapher initWithRepository: to init since it doesn't actually use PBGitRepository
1 parent eece2fc commit c49c029

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

Classes/git/PBGitGrapher.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
// Copyright 2008 __MyCompanyName__. All rights reserved.
77
//
88

9-
@class PBGitRepository;
109
@class PBGitCommit;
1110

1211
@interface PBGitGrapher : NSObject
1312

14-
- (id)initWithRepository:(PBGitRepository *)repo;
1513
- (void)decorateCommit:(PBGitCommit *)commit;
1614

1715
@end

Classes/git/PBGitGrapher.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ @interface PBGitGrapher ()
3434

3535
@implementation PBGitGrapher
3636

37-
- (id) initWithRepository: (PBGitRepository*) repo
37+
- (id) init
3838
{
3939
self = [super init];
4040
if (!self) {

Classes/git/PBGitHistoryGrapher.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ - (instancetype)initWithBaseCommits:(NSSet *)commits viewAllBranches:(BOOL)viewA
2121
delegate = theDelegate;
2222
currentQueue = queue;
2323
searchOIDs = [NSMutableSet setWithSet:commits];
24-
grapher = [[PBGitGrapher alloc] initWithRepository:nil];
24+
grapher = [[PBGitGrapher alloc] init];
2525
viewAllBranches = viewAll;
2626

2727
return self;

Classes/git/PBGitRevList.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ - (void)setupEnumerator:(GTEnumerator *)enumerator
195195

196196
- (void)addCommitsFromEnumerator:(GTEnumerator *)enumerator inPBRepo:(PBGitRepository *)pbRepo operation:(NSOperation *)operation
197197
{
198-
PBGitGrapher *g = [[PBGitGrapher alloc] initWithRepository:pbRepo];
198+
PBGitGrapher *g = [[PBGitGrapher alloc] init];
199199
__block NSDate *lastUpdate = [NSDate date];
200200

201201
dispatch_queue_t loadQueue = dispatch_queue_create("net.phere.gitx.loadQueue", 0);

0 commit comments

Comments
 (0)