packages/fcl-extra/src/unix/daemonapp.inc has the following procedure:
procedure TCustomDaemonApplication.RemoveController(
AController: TDaemonController);
Var
I : Integer;
HC : Boolean;
begin
FreeAndNil(AController.FDaemon);
AController.Free;
end;
Variables
I and
HC are declared but never used.
The following patch removes them, making the procedure look like the procedure with the same name that can be found in packages/fcl-extra/src/win/daemonapp.inc
diff --git a/packages/fcl-extra/src/unix/daemonapp.inc b/packages/fcl-extra/src/unix/daemonapp.inc
index 3022ef44a2..07f3a41409 100644
--- a/packages/fcl-extra/src/unix/daemonapp.inc
+++ b/packages/fcl-extra/src/unix/daemonapp.inc
@@ -122,10 +122,6 @@ procedure TCustomDaemonApplication.SysEndRunDaemons;
procedure TCustomDaemonApplication.RemoveController(
AController: TDaemonController);
-Var
- I : Integer;
- HC : Boolean;
-
begin
FreeAndNil(AController.FDaemon);
AController.Free;