Flood.Editor.Client.GUI.Container.RemoveEmptyPaneGroups C# (CSharp) Method

RemoveEmptyPaneGroups() private method

private RemoveEmptyPaneGroups ( ) : void
return void
        private void RemoveEmptyPaneGroups()
        {
            for (var x = Panels.Count-1; x >= 0 ; x--)
            {
                var paneGroup = Panels[x] as PaneGroup;
                if (paneGroup == null || paneGroup.TabCount != 0)
                    continue;

                RemoveChild(paneGroup, true);
            }
            ReplaceContainerByPaneGroup(this);
        }