Skip to content

Commit 4ccf05e

Browse files
committed
Remove others item. WTF is it even?
1 parent 0dcc0c9 commit 4ccf05e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

PBGitSidebarController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/* Specific things */
2626
PBSourceViewItem *stage;
2727

28-
PBSourceViewItem *branches, *remotes, *tags, *others;
28+
PBSourceViewItem *branches, *remotes, *tags;
2929

3030
PBGitHistoryController *historyViewController;
3131
PBGitCommitController *commitViewController;

PBGitSidebarController.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ - (PBSourceViewItem *) itemForRev:(PBGitRevSpecifier *)rev
157157

158158
- (void)addRevSpec:(PBGitRevSpecifier *)rev
159159
{
160-
if (![rev isSimpleRef]) {
161-
[others addChild:[PBSourceViewItem itemWithRevSpec:rev]];
162-
[sourceView reloadData];
163-
return;
164-
}
165-
166160
NSArray *pathComponents = [[rev simpleRef] componentsSeparatedByString:@"/"];
167161
if ([pathComponents count] < 2)
168162
[branches addChild:[PBSourceViewItem itemWithRevSpec:rev]];
@@ -253,7 +247,6 @@ - (void)populateList
253247
branches = [PBSourceViewItem groupItemWithTitle:@"Branches"];
254248
remotes = [PBSourceViewItem groupItemWithTitle:@"Remotes"];
255249
tags = [PBSourceViewItem groupItemWithTitle:@"Tags"];
256-
others = [PBSourceViewItem groupItemWithTitle:@"Other"];
257250

258251
for (PBGitRevSpecifier *rev in repository.branches)
259252
[self addRevSpec:rev];
@@ -262,7 +255,6 @@ - (void)populateList
262255
[items addObject:branches];
263256
[items addObject:remotes];
264257
[items addObject:tags];
265-
[items addObject:others];
266258

267259
[sourceView reloadData];
268260
[sourceView expandItem:project];

0 commit comments

Comments
 (0)