Skip to content

Commit 2fe9c5f

Browse files
committed
Remove unused %OnNew method from _Common class and ensure connection is established in OnInit method
1 parent b2035af commit 2fe9c5f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/iop/cls/IOP/Common.cls

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ Property %settings As %String(MAXLEN = "");
1919
/// Instance of class
2020
Property %class As %SYS.Python;
2121

22-
Method %OnNew(pConfigName As %String) As %Status
23-
{
24-
set tSC = $$$OK
25-
try {
26-
$$$ThrowOnError(..Connect())
27-
$$$ThrowOnError($method($this,"initConfig",.pConfigName)) ; call subclass
28-
} catch ex {
29-
set tSC = ex.AsStatus()
30-
}
31-
quit tSC
32-
}
33-
3422
/// Get Class
3523
Method GetClass() As %SYS.Python
3624
{
@@ -53,6 +41,7 @@ Method OnInit() As %Status
5341
{
5442
set tSC = $$$OK
5543
try {
44+
$$$ThrowOnError(..Connect())
5645
do ..%class."_dispatch_on_init"($this)
5746
} catch ex {
5847
set tSC = ex.AsStatus()

0 commit comments

Comments
 (0)