Mercurial > libervia-web
changeset 1365:10517a8698ca
server: removed unused legacy code.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Nov 2020 17:53:38 +0100 |
parents | df40708c4c76 |
children | f61e95438050 |
files | libervia/server/server.py twisted/plugins/libervia_server.py |
diffstat | 2 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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):