浏览代码

remove the obsolete configuration entries

Sven Czarnian 3 年之前
父节点
当前提交
f6643d899f
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      aman/config/Server.py

+ 0 - 12
aman/config/Server.py

@@ -8,8 +8,6 @@ class Server():
         self.Address = None
         self.PortReceiver = None
         self.PortNotification = None
-        self.ServerKeyPath = None
-        self.ClientKeyPath = None
 
         # search the required sections
         for key in config:
@@ -19,10 +17,6 @@ class Server():
                 self.PortReceiver = int(config['portreceiver'])
             elif 'portnotification' == key:
                 self.PortNotification = int(config['portnotification'])
-            elif 'serverkeypath' == key:
-                self.ServerKeyPath = config['serverkeypath']
-            elif 'clientkeypath' == key:
-                self.ClientKeyPath = config['clientkeypath']
 
         if self.Address is None:
             sys.stderr.write('No server-address configuration found!')
@@ -33,9 +27,3 @@ class Server():
         if self.PortNotification is None:
             sys.stderr.write('No server-port-notification configuration found!')
             sys.exit(-1)
-        if self.ServerKeyPath is None:
-            sys.stderr.write('No server-key-path configuration found!')
-            sys.exit(-1)
-        if self.ClientKeyPath is None:
-            sys.stderr.write('No client-key-path configuration found!')
-            sys.exit(-1)