LazBuild: Do not require OnRegisterGroup to be assigned. Not needed by LazBuild.

This commit is contained in:
Juha 2023-06-18 15:48:59 +03:00
parent e045ba01d2
commit 7287cd8a11
2 changed files with 2 additions and 5 deletions

View File

@ -281,9 +281,8 @@ implementation
procedure RegisterOptionsGroup(AGroupIndex: Integer; AGroupClass: TAbstractIDEOptionsClass);
// Like function RegisterIDEOptionsGroup in IDEOptEditorIntf (IdeIntf) but does not return anything.
begin
if OnRegisterGroup=Nil then
raise Exception.Create('RegisterOptionsGroup: OnRegisterGroup=Nil');
OnRegisterGroup(AGroupIndex, AGroupClass);
if Assigned(OnRegisterGroup) then
OnRegisterGroup(AGroupIndex, AGroupClass);
end;
{ TIDEEnvironmentOptions }

View File

@ -37,8 +37,6 @@ uses
LCLPlatformDef, Forms,
// Codetools
CodeCache, CodeToolManager, DefineTemplates, FileProcs,
// IdeIntf
IDEOptEditorIntf, // Initialize RegisterOptionsGroup event
// BuildIntf
BaseIDEIntf, MacroIntf, PackageIntf, LazMsgWorker, ProjectIntf, IDEExternToolIntf,
CompOptsIntf, IDEOptionsIntf, PackageDependencyIntf,