# HG changeset patch # User Goffi # Date 1605891218 -3600 # Node ID 10517a8698cab2f0de7af0a716f23b28d7e441af # Parent df40708c4c7693abba7904067255623932143aa7 server: removed unused legacy code. diff -r df40708c4c76 -r 10517a8698ca libervia/server/server.py --- a/libervia/server/server.py Fri Nov 20 17:53:01 2020 +0100 +++ b/libervia/server/server.py Fri Nov 20 17:53:38 2020 +0100 @@ -69,9 +69,6 @@ log = getLogger(__name__) -# following value are set from twisted.plugins.libervia_server initialise -# (see the comment there) -DATA_DIR_DEFAULT = OPT_PARAMETERS_BOTH = OPT_PARAMETERS_CFG = None DEFAULT_MASK = (inotify.IN_CREATE | inotify.IN_MODIFY | inotify.IN_MOVE_SELF | inotify.IN_MOVED_TO) diff -r df40708c4c76 -r 10517a8698ca twisted/plugins/libervia_server.py --- a/twisted/plugins/libervia_server.py Fri Nov 20 17:53:01 2020 +0100 +++ b/twisted/plugins/libervia_server.py Fri Nov 20 17:53:38 2020 +0100 @@ -157,14 +157,6 @@ from sat.core import log_config log_config.satConfigure(C.LOG_BACKEND_TWISTED, C, backend_data=options) - from libervia.server import server - - # we can't import this file from libervia.server.server because it's not a true module - # (there is no __init__.py file, as required by twistd plugin system), so we set the - # global values from here - server.DATA_DIR_DEFAULT = DATA_DIR_DEFAULT - server.OPT_PARAMETERS_BOTH = OPT_PARAMETERS_BOTH - server.OPT_PARAMETERS_CFG = OPT_PARAMETERS_CFG class Options(usage.Options):