Skip to content

Commit 24a1391

Browse files
committed
Remove / comment not needed code
1 parent b5544ee commit 24a1391

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

Source/VirtualTrees.pas

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,8 +1281,6 @@ TVirtualTreeColumns = class(TCollection)
12811281
FDragIndex: TColumnIndex; // index of column currently being dragged
12821282
FDropTarget: TColumnIndex; // current target column (index) while dragging
12831283
FDropBefore: Boolean; // True if drop position is in the left half of a column, False for the right
1284-
// side to drop the dragged column to
1285-
function GetCount: Integer;
12861284
function GetItem(Index: TColumnIndex): TVirtualTreeColumn;
12871285
function GetNewIndex(P: TPoint; var OldIndex: TColumnIndex): Boolean;
12881286
procedure SetDefaultWidth(Value: Integer);
@@ -1336,7 +1334,6 @@ TVirtualTreeColumns = class(TCollection)
13361334
procedure SaveToStream(const Stream: TStream);
13371335
function TotalWidth: Integer;
13381336

1339-
property Count: Integer read GetCount;
13401337
property ClickIndex: TColumnIndex read FClickIndex;
13411338
property DefaultWidth: Integer read FDefaultWidth write SetDefaultWidth default 50;
13421339
property Items[Index: TColumnIndex]: TVirtualTreeColumn read GetItem write SetItem; default;
@@ -6206,18 +6203,18 @@ constructor TVirtualTreeColumn.Create(Collection: TCollection);
62066203
FImageIndex := -1;
62076204
FMargin := 4;
62086205
FSpacing := 4;
6209-
FText := '';
6206+
//FText := '';
62106207
FOptions := DefaultColumnOptions;
62116208
FAlignment := taLeftJustify;
62126209
FBidiMode := bdLeftToRight;
62136210
FColor := clWindow;
62146211
FLayout := blGlyphLeft;
6215-
FBonusPixel := False;
6212+
//FBonusPixel := False;
62166213
FCaptionAlignment := taLeftJustify;
62176214
FCheckType := ctCheckBox;
62186215
FCheckState := csUncheckedNormal;
6219-
FCheckBox := False;
6220-
FHasImage := False;
6216+
//FCheckBox := False;
6217+
//FHasImage := False;
62216218

62226219
inherited Create(Collection);
62236220

@@ -7340,14 +7337,6 @@ destructor TVirtualTreeColumns.Destroy;
73407337

73417338
//----------------------------------------------------------------------------------------------------------------------
73427339

7343-
function TVirtualTreeColumns.GetCount: Integer;
7344-
7345-
begin
7346-
Result := inherited Count;
7347-
end;
7348-
7349-
//----------------------------------------------------------------------------------------------------------------------
7350-
73517340
function TVirtualTreeColumns.GetItem(Index: TColumnIndex): TVirtualTreeColumn;
73527341

73537342
begin

0 commit comments

Comments
 (0)