menu: Remove customized get_status overrides

Now that the extruder, display, heater_fan, output_pin, and servo
classes have get_status() methods, it is no longer necessary to
override them in the menu code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-04 11:55:40 -04:00
parent df765b33dc
commit 0bb714edd7
1 changed files with 0 additions and 17 deletions

View File

@ -1274,23 +1274,6 @@ class MenuManager:
'is_idle': (
self.parameters[name]['status'] == "Idle")
})
elif class_name == 'PrinterExtruder':
info = objs[name].get_heater().get_status(
eventtime)
self.parameters[name].update(info)
elif class_name == 'PrinterLCD':
self.parameters[name].update({
'progress': objs[name].progress or 0,
'message': objs[name].message or '',
'is_enabled': True
})
elif class_name == 'PrinterHeaterFan':
info = objs[name].fan.get_status(eventtime)
self.parameters[name].update(info)
elif class_name in ('PrinterOutputPin', 'PrinterServo'):
self.parameters[name].update({
'value': objs[name].last_value
})
else:
self.parameters[name] = {'is_enabled': False}
except Exception: