cleanup and address a few warnings

This commit is contained in:
Basile Burg 2021-09-19 14:14:01 +02:00
parent 0ba7c05e9e
commit 6e19a724ea
3 changed files with 2 additions and 12 deletions

View File

@ -597,7 +597,7 @@ var
exit;
// TODO-cimprovement: use commonFolder() when it'll be compat. with the rel. paths.
// hint for the common dir
dirHint := fSrcs[i];
dirHint := fSrcs[fSrcs.Count-1];
while (dirHint[1] = '.') or (dirHint[1] = DirectorySeparator) do
dirHint := dirHint[2..dirHint.length];
ini := fFilename.extractFilePath;
@ -1174,17 +1174,12 @@ begin
end;
procedure setCEProjectCompiler(value: DCompiler);
var
sel: ICompilerSelector;
begin
sel := getCompilerSelector;
if value = gdc then
value := gdmd
else if value = ldc then
value := ldmd;
CEProjectCompiler := value;
//if not sel.isCompilerValid(CEProjectCompiler) then
// CEProjectCompiler := dmd;
end;
initialization

View File

@ -639,16 +639,12 @@ end;
procedure TProjectInspectWidget.updateImperative;
var
conf: string;
itm: TTreeNode;
chd: TTreeNode;
i,j: integer;
sel: string = '';
fld: string;
rng: TStringRange = (ptr:nil; pos:0; len:0);
begin
if Tree.Selected.isAssigned then
sel := Tree.Selected.GetTextPath;
fFileNode.DeleteChildren;
if fProj.isNotAssigned then

View File

@ -10,7 +10,7 @@ uses
SynHighlighterLFM, SynEditHighlighter, SynEditMouseCmds, SynEditFoldedView,
SynEditMarks, SynEditTypes, SynHighlighterJScript, SynBeautifier, dialogs,
md5, Spin, LCLIntf, LazFileUtils, LMessages, SynHighlighterCpp, math,
SynGutterMarks, SynGutterBase, LCLVersion,
SynGutterBase, LCLVersion,
//SynEditMarkupFoldColoring,
Clipbrd, fpjson, jsonparser, LazUTF8, LazUTF8Classes, Buttons, StdCtrls,
u_common, u_writableComponent, u_d2syn, u_txtsyn, u_dialogs,
@ -2882,7 +2882,6 @@ procedure TDexedMemo.getCompletionList;
var
i: integer;
o: TObject;
s: string;
w: string;
r: TStringRange = (ptr:nil; pos:0; len: 0);
h: TStringHashSet;