Skip to content

Commit 20f76da

Browse files
committed
remove unused dependency (generics.collections)
1 parent 60fa0be commit 20f76da

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

entries/ghatem-fpc/src/onebrc.pas

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
interface
66

77
uses
8-
Classes, SysUtils, Generics.Collections,
8+
Classes, SysUtils,
99
mormot.core.os, mormot.core.base;
1010

1111
function RoundExDouble(const ATemp: Double): Double; inline;
@@ -25,7 +25,6 @@ function RoundExDouble(const ATemp: Double): Double; inline;
2525
Name: AnsiString;
2626
end;
2727
PStationData = ^TStationData;
28-
TStationsDict = specialize TDictionary<Cardinal, PStationData>;
2928

3029
TKeys = array of Cardinal;
3130
TValues = array of PStationData;
@@ -128,9 +127,6 @@ function Compare(AList: TStringList; AIndex1, AIndex2: Integer): Integer;
128127

129128
{ TMyDictionary }
130129

131-
const
132-
cHashConst: Double = (Sqrt(5) - 1) / 2;
133-
134130
procedure TMyDictionary.InternalFind(const aKey: Cardinal; out aFound: Boolean; out aIndex: Integer);
135131
var vIdx: Integer;
136132
vOffset: Integer;

0 commit comments

Comments
 (0)