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

Commit 95315d7

Browse files
Removing additional unused parts of favorites
1 parent e71ccf1 commit 95315d7

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,6 @@ private void OnTreeNodeGUI(BranchTreeNode node)
493493
var style = node.Active ? Styles.BoldLabel : Styles.Label;
494494
var rect = GUILayoutUtility.GetRect(content, style, GUILayout.MaxHeight(EditorGUIUtility.singleLineHeight));
495495
var clickRect = new Rect(0f, rect.y, Position.width, rect.height);
496-
var favoriteRect = new Rect(clickRect.xMax - clickRect.height * 2f, clickRect.y, clickRect.height, clickRect.height);
497496

498497
var selected = selectedNode == node;
499498
var keyboardFocus = GUIUtility.keyboardControl == listID;
@@ -505,14 +504,6 @@ private void OnTreeNodeGUI(BranchTreeNode node)
505504
{
506505
style.Draw(clickRect, GUIContent.none, false, false, true, keyboardFocus);
507506
}
508-
509-
if (node.Type != NodeType.Folder)
510-
{
511-
if (Event.current.type == EventType.Repaint)
512-
{
513-
GUI.DrawTexture(favoriteRect, Styles.FavoriteIconOff);
514-
}
515-
}
516507
}
517508

518509
// The actual icon and label

0 commit comments

Comments
 (0)