@@ -386,12 +386,6 @@ public class TreeNode : ITreeNode
386386 [ NonSerialized ] public Texture Icon ;
387387 [ NonSerialized ] public Texture IconBadge ;
388388
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-
395389 public string Path
396390 {
397391 get { return path ; }
@@ -484,31 +478,6 @@ public TreeNodeRenderResult Render(Rect rect, float indentation, bool isSelected
484478 var iconRect = new Rect ( nodeStartX , nodeRect . y , fillRect . width - nodeStartX , nodeRect . height ) ;
485479 var statusRect = new Rect ( iconRect . x + 6 , iconRect . yMax - 9 , 9 , 9 ) ;
486480
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-
512481 var contentStyle = IsActive ? activeNodeStyle : nodeStyle ;
513482
514483 if ( Event . current . type == EventType . repaint )
0 commit comments