File tree Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Expand file tree Collapse file tree 1 file changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -2032,8 +2032,6 @@ TEngineClient = class(TComponent)
2032
2032
2033
2033
procedure SetEngine ( val : TPythonEngine ); virtual ;
2034
2034
procedure Loaded ; override;
2035
- procedure Notification ( AComponent: TComponent;
2036
- Operation: TOperation); override;
2037
2035
procedure ModuleReady (Sender : TObject); virtual ;
2038
2036
public
2039
2037
// Constructors & destructors
@@ -4616,24 +4614,10 @@ function TPythonEngine.GetClients( idx : Integer ) : TEngineClient;
4616
4614
4617
4615
procedure TPythonEngine.Notification ( AComponent: TComponent;
4618
4616
Operation: TOperation);
4619
- var
4620
- i : Integer;
4621
4617
begin
4622
4618
inherited ;
4623
- if Operation = opRemove then
4624
- begin
4625
- if AComponent = IO then
4626
- IO := nil
4627
- else
4628
- begin
4629
- for i := 0 to ClientCount - 1 do
4630
- if Clients[i] = AComponent then
4631
- begin
4632
- RemoveClient( Clients[i] );
4633
- Break;
4634
- end ;
4635
- end ;
4636
- end ;
4619
+ if (Operation = opRemove) and (AComponent = IO) then
4620
+ IO := nil
4637
4621
end ;
4638
4622
4639
4623
procedure TPythonEngine.CheckRegistry ;
@@ -6410,14 +6394,6 @@ procedure TEngineClient.Loaded;
6410
6394
FOnCreate( Self );
6411
6395
end ;
6412
6396
6413
- procedure TEngineClient.Notification ( AComponent: TComponent; Operation: TOperation);
6414
- begin
6415
- inherited ;
6416
- if Operation = opRemove then
6417
- if AComponent = FEngine then
6418
- FEngine := nil ;
6419
- end ;
6420
-
6421
6397
procedure TEngineClient.Initialize ;
6422
6398
begin
6423
6399
if FInitialized then
You can’t perform that action at this time.
0 commit comments