Runtime: removing dead code
authorEdouard Tisserant
Wed, 02 Mar 2022 11:22:55 +0100
changeset 3440 3770ded5db5c
parent 3439 2739fbd82569
child 3441 710eec6eb01c
Runtime: removing dead code
Beremiz_service.py
runtime/NevowServer.py
runtime/WampClient.py
--- a/Beremiz_service.py	Tue Feb 15 11:09:39 2022 +0100
+++ b/Beremiz_service.py	Wed Mar 02 11:22:55 2022 +0100
@@ -543,14 +543,12 @@
         try:
             website = NS.RegisterWebsite(interface, webport)
             pyruntimevars["website"] = website
-            NS.SetServer(pyroserver)
             statuschange.append(NS.website_statuslistener_factory(website))
         except Exception:
             LogMessageAndException(_("Nevow Web service failed. "))
 
     if havewamp:
         try:
-            WC.SetServer(pyroserver)
             WC.RegisterWampClient(wampconf, PSKpath)
             WC.RegisterWebSettings(NS)
         except Exception:
--- a/runtime/NevowServer.py	Tue Feb 15 11:09:39 2022 +0100
+++ b/runtime/NevowServer.py	Wed Mar 02 11:22:55 2022 +0100
@@ -49,7 +49,6 @@
 '''
 
 WorkingDir = None
-_PySrv = None
 
 
 class PLCHMI(athena.LiveElement):
@@ -417,6 +416,3 @@
     return statuslistener(site).listen
 
 
-def SetServer(pysrv):
-    global _PySrv
-    _PySrv = pysrv
--- a/runtime/WampClient.py	Tue Feb 15 11:09:39 2022 +0100
+++ b/runtime/WampClient.py	Wed Mar 02 11:22:55 2022 +0100
@@ -45,7 +45,6 @@
 
 _transportFactory = None
 _WampSession = None
-_PySrv = None
 WorkingDir = None
 
 # Find pre-existing project WAMP config file
@@ -369,11 +368,6 @@
     return "Disconnected"
 
 
-def SetServer(pysrv):
-    global _PySrv
-    _PySrv = pysrv
-
-
 def PublishEvent(eventID, value):
     if getWampStatus() == "Attached":
         _WampSession.publish(text(eventID), value)