remove unneeded return values from managers

This commit is contained in:
chrys 2016-09-17 17:58:23 +02:00
parent 87a2b5bfc1
commit 2a9e8c4017
4 changed files with 4 additions and 11 deletions

View File

@ -45,7 +45,6 @@ class inputManager():
except Exception as e:
environment['runtime']['debug'].writeDebugOut(environment,"Error while writeUInput",debug.debugLevel.ERROR)
environment['runtime']['debug'].writeDebugOut(environment, str(e),debug.debugLevel.ERROR)
return environment
def getPrevDeepestInput(self, environment):
shortcut = []

View File

@ -11,22 +11,18 @@ class screenManager():
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'driver'), 'screenDriver')
if environment['runtime']['settingsManager'].getSettingAsBool(environment,'screen', 'autodetectSuspendingScreen'):
self.autoIgnoreScreens = environment['runtime']['screenDriver'].getIgnoreScreens()
return environment
def shutdown(self, environment):
if environment['runtime']['screenDriver']:
environment['runtime']['screenDriver'].shutdown(environment)
return environment
def update(self, environment):
if not self.isSuspendingScreen(environment):
environment = environment['runtime']['screenDriver'].update(environment)
environment['screenData']['lastScreenUpdate'] = time.time()
return environment
def isSuspendingScreen(self, environment):
currScreen = environment['runtime']['screenDriver'].getCurrScreen()
return ((currScreen in \
environment['runtime']['settingsManager'].getSetting(environment,'screen', 'suspendingScreen').split(',')) or
(currScreen in self.autoIgnoreScreens))

View File

@ -15,9 +15,9 @@ class settingsManager():
def __init__(self):
self.settings = settings
def initialize(self, environment):
return environment
pass
def shutdown(self, environment):
return environment
pass
def loadShortcuts(self, environment, kbConfigPath='../../config/keyboard/desktop.conf'):
kbConfig = open(kbConfigPath,"r")
while(True):
@ -74,7 +74,6 @@ class settingsManager():
soundIconFile = soundIconPath + Values[1]
environment['soundIcons'][soundIcon] = soundIconFile
siConfig.close()
return environment
def loadSettings(self, environment, settingConfigPath):
if not os.path.exists(settingConfigPath):
@ -85,7 +84,6 @@ class settingsManager():
def setSetting(self, environment, section, setting, value):
environment['settings'].set(section, setting, value)
return environment
def getSetting(self, environment, section, setting):
value = ''

View File

@ -12,9 +12,9 @@ class driver():
self.uDevices = {}
self.getInputDevices()
def initialize(self, environment):
return environment
pass
def shutdown(self, environment):
return environment
pass
def getInput(self, environment):
event = None
r, w, x = select(self.iDevices, [], [], environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'screen', 'screenUpdateDelay'))