Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 90e9965

Browse files
Removing references to Favorites
1 parent f119dde commit 90e9965

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -375,16 +375,6 @@ private void OnTreeGUI(Rect rect)
375375

376376
private int CompareBranches(GitBranch a, GitBranch b)
377377
{
378-
//if (IsFavorite(a.Name))
379-
//{
380-
// return -1;
381-
//}
382-
383-
//if (IsFavorite(b.Name))
384-
//{
385-
// return 1;
386-
//}
387-
388378
if (a.Name.Equals("master"))
389379
{
390380
return -1;
@@ -398,31 +388,6 @@ private int CompareBranches(GitBranch a, GitBranch b)
398388
return a.Name.CompareTo(b.Name);
399389
}
400390

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-
426391
public override bool IsBusy
427392
{
428393
get { return false; }

0 commit comments

Comments
 (0)