mirror of https://gitlab.com/basile.b/dexed.git
remove dead code
This commit is contained in:
parent
2ef299b91e
commit
3266e97883
|
|
@ -70,8 +70,6 @@ type
|
||||||
// passes compilation message as "to be guessed"
|
// passes compilation message as "to be guessed"
|
||||||
procedure compProcOutput(proc: TObject);
|
procedure compProcOutput(proc: TObject);
|
||||||
procedure compProcTerminated(proc: TObject);
|
procedure compProcTerminated(proc: TObject);
|
||||||
function getObjectsDirectory: string; inline;
|
|
||||||
procedure getUpToDateObjects(str: TStrings);
|
|
||||||
protected
|
protected
|
||||||
procedure beforeLoad; override;
|
procedure beforeLoad; override;
|
||||||
procedure afterSave; override;
|
procedure afterSave; override;
|
||||||
|
|
@ -877,7 +875,6 @@ begin
|
||||||
fCompilProc.OnReadData:= @compProcOutput;
|
fCompilProc.OnReadData:= @compProcOutput;
|
||||||
fCompilProc.OnTerminate:= @compProcTerminated;
|
fCompilProc.OnTerminate:= @compProcTerminated;
|
||||||
getOpts(fCompilProc.Parameters);
|
getOpts(fCompilProc.Parameters);
|
||||||
//getUpToDateObjects(fCompilProc.Parameters);
|
|
||||||
if CEProjectCompiler = gdc then
|
if CEProjectCompiler = gdc then
|
||||||
fCompilProc.Parameters.Add('-gdc=gdc');
|
fCompilProc.Parameters.Add('-gdc=gdc');
|
||||||
fCompilProc.Execute;
|
fCompilProc.Execute;
|
||||||
|
|
@ -1022,46 +1019,6 @@ begin
|
||||||
result := true;
|
result := true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TNativeProject.getObjectsDirectory: string; inline;
|
|
||||||
var
|
|
||||||
cfg: TCompilerConfiguration;
|
|
||||||
begin
|
|
||||||
result := '';
|
|
||||||
cfg := currentConfiguration;
|
|
||||||
if (cfg.pathsOptions.objectDirectory <> '') and
|
|
||||||
DirectoryExistsUTF8(cfg.pathsOptions.objectDirectory) then
|
|
||||||
result := cfg.pathsOptions.objectDirectory;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TNativeProject.getUpToDateObjects(str: TStrings);
|
|
||||||
var
|
|
||||||
odr: string;
|
|
||||||
src: string;
|
|
||||||
obj: string;
|
|
||||||
i: integer;
|
|
||||||
begin
|
|
||||||
odr := getObjectsDirectory;
|
|
||||||
if odr.isEmpty then
|
|
||||||
begin
|
|
||||||
for i := 0 to fSrcs.Count-1 do
|
|
||||||
begin
|
|
||||||
src := sourceAbsolute(i);
|
|
||||||
obj := src.stripFileExt + objExt;
|
|
||||||
if obj.fileExists and src.fileExists then
|
|
||||||
begin
|
|
||||||
if FileAgeUTF8(src) > FileAgeUTF8(obj) then
|
|
||||||
DeleteFile(obj)
|
|
||||||
else
|
|
||||||
str.Add(obj);
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TNativeProject.outputFilename: string;
|
function TNativeProject.outputFilename: string;
|
||||||
begin
|
begin
|
||||||
exit(fOutputFilename);
|
exit(fOutputFilename);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue