@@ -367,12 +367,6 @@ public class TreeNode : ITreeNode
367367 [ NonSerialized ] public Texture Icon ;
368368 [ NonSerialized ] public Texture IconBadge ;
369369
370- // [NonSerialized] private GUIStyle blackStyle;
371- // [NonSerialized] private GUIStyle greenStyle;
372- // [NonSerialized] private GUIStyle blueStyle;
373- // [NonSerialized] private GUIStyle yellowStyle;
374- // [NonSerialized] private GUIStyle magentaStyle;
375-
376370 public string Path
377371 {
378372 get { return path ; }
@@ -465,31 +459,6 @@ public TreeNodeRenderResult Render(Rect rect, float indentation, bool isSelected
465459 var iconRect = new Rect ( nodeStartX , nodeRect . y , fillRect . width - nodeStartX , nodeRect . height ) ;
466460 var statusRect = new Rect ( iconRect . x + 6 , iconRect . yMax - 9 , 9 , 9 ) ;
467461
468- // if (Event.current.type == EventType.repaint)
469- // {
470- // if (blackStyle == null)
471- // blackStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.black) } };
472- //
473- // if (greenStyle == null)
474- // greenStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.green) } };
475- //
476- // if (blueStyle == null)
477- // blueStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.blue) } };
478- //
479- // if (yellowStyle == null)
480- // yellowStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.yellow) } };
481- //
482- // if (magentaStyle == null)
483- // magentaStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.magenta) } };
484- //
485- // GUI.Box(nodeRect, GUIContent.none, blackStyle);
486- //
487- // GUI.Box(toggleRect, GUIContent.none, isFolder ? greenStyle : blueStyle);
488- //
489- // GUI.Box(checkRect, GUIContent.none, yellowStyle);
490- // GUI.Box(iconRect, GUIContent.none, magentaStyle);
491- // }
492-
493462 if ( Event . current . type == EventType . repaint )
494463 {
495464 nodeStyle . Draw ( fillRect , GUIContent . none , false , false , false , isSelected ) ;
0 commit comments