@@ -386,12 +386,6 @@ public class TreeNode : ITreeNode
386
386
[ NonSerialized ] public Texture Icon ;
387
387
[ NonSerialized ] public Texture IconBadge ;
388
388
389
- // [NonSerialized] private GUIStyle blackStyle;
390
- // [NonSerialized] private GUIStyle greenStyle;
391
- // [NonSerialized] private GUIStyle blueStyle;
392
- // [NonSerialized] private GUIStyle yellowStyle;
393
- // [NonSerialized] private GUIStyle magentaStyle;
394
-
395
389
public string Path
396
390
{
397
391
get { return path ; }
@@ -484,31 +478,6 @@ public TreeNodeRenderResult Render(Rect rect, float indentation, bool isSelected
484
478
var iconRect = new Rect ( nodeStartX , nodeRect . y , fillRect . width - nodeStartX , nodeRect . height ) ;
485
479
var statusRect = new Rect ( iconRect . x + 6 , iconRect . yMax - 9 , 9 , 9 ) ;
486
480
487
- //if (Event.current.type == EventType.repaint)
488
- //{
489
- // if (blackStyle == null)
490
- // blackStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.black) } };
491
- //
492
- // if (greenStyle == null)
493
- // greenStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.green) } };
494
- //
495
- // if (blueStyle == null)
496
- // blueStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.blue) } };
497
- //
498
- // if (yellowStyle == null)
499
- // yellowStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.yellow) } };
500
- //
501
- // if (magentaStyle == null)
502
- // magentaStyle = new GUIStyle { normal = { background = Utility.GetTextureFromColor(Color.magenta) } };
503
- //
504
- // GUI.Box(nodeRect, GUIContent.none, blackStyle);
505
- //
506
- // GUI.Box(toggleRect, GUIContent.none, isFolder ? greenStyle : blueStyle);
507
- //
508
- // GUI.Box(checkRect, GUIContent.none, yellowStyle);
509
- // GUI.Box(iconRect, GUIContent.none, magentaStyle);
510
- //}
511
-
512
481
var contentStyle = IsActive ? activeNodeStyle : nodeStyle ;
513
482
514
483
if ( Event . current . type == EventType . repaint )
0 commit comments