From 91532eaa7607c327378a21c45caca2f6c6ddfb64 Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 15 Apr 2008 17:58:32 +0000 Subject: [PATCH] IDE: removed unneeded search, added comment git-svn-id: trunk@14838 - --- designer/jitforms.pp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/designer/jitforms.pp b/designer/jitforms.pp index 3c9eaff80f..54a2bf8809 100644 --- a/designer/jitforms.pp +++ b/designer/jitforms.pp @@ -808,12 +808,12 @@ end; function TJITComponentList.OnFindGlobalComponent( const AName: AnsiString): TComponent; begin - // Note: do not search in the 'Application' object - // this function should only find designer forms + // This event is triggered everytime TReader searches a Component. + // It is triggered for every sub component and every reference. + // The sub comonent are found by TReader itself. + // The other components are done at the end via GlobalFixupReferences. + // So, there is nothing left to do here. Result := nil; - {$IFDEF EnableMultiFormProperties} - Result := PkgBoss.FindReferencedRootComponent(CurReadJITComponent, AName); - {$ENDIF} //DebugLn(dbgsName(CurReadJITComponent), ' FIND global component ', AName, ' ', dbgsName(Result)); end;