From 83917097939ed1bf973e318f53511e75320d8e23 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Wed, 12 Jan 2011 16:57:07 +0200 Subject: UI Designer: minor code cleanup. --- uidesigner/vfddesigner.pas | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/uidesigner/vfddesigner.pas b/uidesigner/vfddesigner.pas index b8fd6b82..2aa08248 100644 --- a/uidesigner/vfddesigner.pas +++ b/uidesigner/vfddesigner.pas @@ -171,8 +171,7 @@ begin resizer[n] := TwgResizer.Create(self, n) else begin - if resizer[n] <> nil then - resizer[n].Free; + resizer[n].Free; resizer[n] := nil; end; end; @@ -204,8 +203,7 @@ var n: integer; begin for n := 1 to 8 do - if resizer[n] <> nil then - resizer[n].Free; + resizer[n].Free; other.Free; inherited Destroy; end; -- cgit v1.2.3-70-g09d2