lcl: clean up

git-svn-id: trunk@53332 -
This commit is contained in:
mattias 2016-11-10 08:45:31 +00:00
parent 79db8762f5
commit 43fe142cde

View File

@ -15,9 +15,6 @@
Abstract:
TTreeView for LCL
ToDo:
- Columns
}
@ -29,9 +26,6 @@ const
TVAutoHeightString = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789jgpq|\()^';
MinNodeCapacity = 10;
// maximum scroll range
//MAX_SCROLL = 32767;
function CompareExpandedNodes(Data1, Data2: Pointer): integer;
var
Node1: TTreeNodeExpandedState;
@ -1045,7 +1039,6 @@ begin
Result := GetLastChild;
if Assigned(Result) and not Result.Visible then begin
Result := Result.GetPrevVisible;
// ToDo: implement this better. Now it works only when Self is visible.
if Result = Self then begin // No visible nodes found.
Assert(Visible, 'TTreeNode.GetLastVisibleChild: Node is not Visible');
Result := Nil;