Removed dead slow code
authorEdouard Tisserant
Tue, 20 Feb 2018 14:24:30 +0100
changeset 1954 b113d7de4899
parent 1953 5736d25bb393
child 1955 a1ea9856013a
Removed dead slow code
PLCControler.py
--- a/PLCControler.py	Tue Feb 20 14:16:51 2018 +0100
+++ b/PLCControler.py	Tue Feb 20 14:24:30 2018 +0100
@@ -50,30 +50,6 @@
 
 ScriptDirectory = paths.AbsDir(__file__)
 
-
-class LibraryResolver(etree.Resolver):
-    """Helper object for loading library in xslt stylesheets"""
-
-    def __init__(self, controller, debug=False):
-        self.Controller = controller
-        self.Debug = debug
-
-    def resolve(self, url, pubid, context):
-        # TODO stop deepcopy
-        lib_name = os.path.basename(url)
-        if lib_name in ["project", "stdlib", "extensions"]:
-            lib_el = etree.Element(lib_name)
-            if lib_name == "project":
-                lib_el.append(deepcopy(self.Controller.GetProject(self.Debug)))
-            elif lib_name == "stdlib":
-                for lib in StdBlckLibs.values():
-                    lib_el.append(deepcopy(lib))
-            else:
-                for ctn in self.Controller.ConfNodeTypes:
-                    lib_el.append(deepcopy(ctn["types"]))
-            return self.resolve_string(etree.tostring(lib_el), context)
-
-
 # -------------------------------------------------------------------------------
 #           Helpers object for generating pou block instances list
 # -------------------------------------------------------------------------------