Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbriggs committed Aug 22, 2019
1 parent 5fd565e commit 2f9300e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions Scalar.Installer.Windows/Setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -291,35 +291,6 @@ begin
end;
end;
function DeleteFileIfItExists(FilePath: string) : Boolean;
begin
Result := False;
if FileExists(FilePath) then
begin
Log('DeleteFileIfItExists: Removing ' + FilePath);
if DeleteFile(FilePath) then
begin
if not FileExists(FilePath) then
begin
Result := True;
end
else
begin
Log('DeleteFileIfItExists: File still exists after deleting: ' + FilePath);
end;
end
else
begin
Log('DeleteFileIfItExists: Failed to delete ' + FilePath);
end;
end
else
begin
Log('DeleteFileIfItExists: File does not exist: ' + FilePath);
Result := True;
end;
end;
function IsScalarRunning(): Boolean;
var
ResultCode: integer;
Expand Down

0 comments on commit 2f9300e

Please sign in to comment.