mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 07:46:11 +01:00
pins: Remove module level get_printer_pins() and setup_pin() functions
Most callers did a lookup of the pins module via
printer.lookup_object("pins"). Use that as the standard method and
remove these less frequently used methods.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -242,9 +242,3 @@ class PrinterPins:
|
||||
|
||||
def add_printer_objects(printer, config):
|
||||
printer.add_object('pins', PrinterPins())
|
||||
|
||||
def get_printer_pins(printer):
|
||||
return printer.lookup_object('pins')
|
||||
|
||||
def setup_pin(printer, pin_type, pin_desc):
|
||||
return get_printer_pins(printer).setup_pin(pin_type, pin_desc)
|
||||
|
||||
Reference in New Issue
Block a user