extruder: Remove unused variable self.config

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-01-16 21:40:53 -05:00
parent 8e5d228555
commit f8bb383e9a
1 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,6 @@ EXTRUDE_DIFF_IGNORE = 1.02
class PrinterExtruder: class PrinterExtruder:
def __init__(self, printer, config): def __init__(self, printer, config):
self.config = config
self.heater = heater.PrinterHeater(printer, config) self.heater = heater.PrinterHeater(printer, config)
self.stepper = stepper.PrinterStepper(printer, config) self.stepper = stepper.PrinterStepper(printer, config)
self.nozzle_diameter = config.getfloat('nozzle_diameter', above=0.) self.nozzle_diameter = config.getfloat('nozzle_diameter', above=0.)
@ -23,10 +22,10 @@ class PrinterExtruder:
self.max_extrude_ratio = max_cross_section / self.filament_area self.max_extrude_ratio = max_cross_section / self.filament_area
toolhead = printer.objects['toolhead'] toolhead = printer.objects['toolhead']
max_velocity, max_accel = toolhead.get_max_velocity() max_velocity, max_accel = toolhead.get_max_velocity()
self.max_e_velocity = self.config.getfloat( self.max_e_velocity = config.getfloat(
'max_extrude_only_velocity', max_velocity * self.max_extrude_ratio 'max_extrude_only_velocity', max_velocity * self.max_extrude_ratio
, above=0.) , above=0.)
self.max_e_accel = self.config.getfloat( self.max_e_accel = config.getfloat(
'max_extrude_only_accel', max_accel * self.max_extrude_ratio 'max_extrude_only_accel', max_accel * self.max_extrude_ratio
, above=0.) , above=0.)
self.stepper.set_max_jerk(9999999.9, 9999999.9) self.stepper.set_max_jerk(9999999.9, 9999999.9)