extruder: Remove support for lookahead() method

Now that the extruder lookahead method is no longer used it can be
removed from the toolhead and extruder classes.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-11-02 21:08:07 -04:00
parent 5f5896ad71
commit 89d1ab7c04
2 changed files with 4 additions and 20 deletions

View file

@ -135,8 +135,6 @@ class PrinterExtruder:
if diff_r:
return (self.instant_corner_v / abs(diff_r))**2
return move.max_cruise_v2
def lookahead(self, moves, flush_count, lazy):
return flush_count
def move(self, print_time, move):
axis_r = move.axes_r[3]
accel = move.accel * axis_r
@ -183,8 +181,6 @@ class DummyExtruder:
move.end_pos, "Extrude when no extruder present")
def calc_junction(self, prev_move, move):
return move.max_cruise_v2
def lookahead(self, moves, flush_count, lazy):
return flush_count
def get_heater(self):
raise homing.CommandError("Extruder not configured")