@@ -40,7 +40,6 @@ class BranchesView : Subview
40
40
41
41
[ NonSerialized ] private List < BranchTreeNode > favorites = new List < BranchTreeNode > ( ) ;
42
42
[ NonSerialized ] private int listID = - 1 ;
43
- [ NonSerialized ] private List < GitBranch > newLocalBranches ;
44
43
[ NonSerialized ] private BranchTreeNode newNodeSelection ;
45
44
[ NonSerialized ] private BranchesMode targetMode ;
46
45
[ NonSerialized ] private bool favoritesHasChanged ;
@@ -137,8 +136,7 @@ public void UpdateBranches()
137
136
if ( Repository == null )
138
137
return ;
139
138
140
- OnLocalBranchesUpdate ( Repository . LocalBranches ) ;
141
- OnRemoteBranchesUpdate ( Repository . RemoteBranches ) ;
139
+ BuildTree ( Repository . LocalBranches , Repository . RemoteBranches ) ;
142
140
}
143
141
144
142
public override void OnGUI ( )
@@ -292,17 +290,6 @@ private bool IsFavorite(string branchName)
292
290
return ! String . IsNullOrEmpty ( branchName ) && favoritesList . Contains ( branchName ) ;
293
291
}
294
292
295
- private void OnLocalBranchesUpdate ( IEnumerable < GitBranch > list )
296
- {
297
- newLocalBranches = new List < GitBranch > ( list ) ;
298
- }
299
-
300
- private void OnRemoteBranchesUpdate ( IEnumerable < GitBranch > newRemoteBranches )
301
- {
302
- BuildTree ( newLocalBranches , newRemoteBranches ) ;
303
- newLocalBranches . Clear ( ) ;
304
- }
305
-
306
293
private void BuildTree ( IEnumerable < GitBranch > local , IEnumerable < GitBranch > remote )
307
294
{
308
295
//Clear the selected node
0 commit comments