This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed
src/UnityExtension/Assets/Editor/GitHub.Unity/UI Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -375,16 +375,6 @@ private void OnTreeGUI(Rect rect)
375
375
376
376
private int CompareBranches ( GitBranch a , GitBranch b )
377
377
{
378
- //if (IsFavorite(a.Name))
379
- //{
380
- // return -1;
381
- //}
382
-
383
- //if (IsFavorite(b.Name))
384
- //{
385
- // return 1;
386
- //}
387
-
388
378
if ( a . Name . Equals ( "master" ) )
389
379
{
390
380
return - 1 ;
@@ -398,31 +388,6 @@ private int CompareBranches(GitBranch a, GitBranch b)
398
388
return a . Name . CompareTo ( b . Name ) ;
399
389
}
400
390
401
- //private bool IsFavorite(string branchName)
402
- //{
403
- // return !String.IsNullOrEmpty(branchName) && favoritesList.Contains(branchName);
404
- //}
405
-
406
- //private void SetFavorite(TreeNode branch, bool favorite)
407
- //{
408
- // if (string.IsNullOrEmpty(branch.Name))
409
- // {
410
- // return;
411
- // }
412
-
413
- // if (!favorite)
414
- // {
415
- // favorites.Remove(branch);
416
- // Manager.LocalSettings.Set(FavoritesSetting, favorites.Select(x => x.Name).ToList());
417
- // }
418
- // else
419
- // {
420
- // favorites.Remove(branch);
421
- // favorites.Add(branch);
422
- // Manager.LocalSettings.Set(FavoritesSetting, favorites.Select(x => x.Name).ToList());
423
- // }
424
- //}
425
-
426
391
public override bool IsBusy
427
392
{
428
393
get { return false ; }
You can’t perform that action at this time.
0 commit comments