Skip to content

Commit 9cca14a

Browse files
committed
stmhal/pin_named_pins: Remove unreachable print function.
There are never any instances of these objects so there is no need to have a print function.
1 parent 2b70757 commit 9cca14a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

stmhal/pin_named_pins.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,15 @@
3131
#include "py/mphal.h"
3232
#include "pin.h"
3333

34-
STATIC void pin_named_pins_obj_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
35-
pin_named_pins_obj_t *self = self_in;
36-
mp_printf(print, "<Pin.%q>", self->name);
37-
}
38-
3934
const mp_obj_type_t pin_cpu_pins_obj_type = {
4035
{ &mp_type_type },
4136
.name = MP_QSTR_cpu,
42-
.print = pin_named_pins_obj_print,
4337
.locals_dict = (mp_obj_t)&pin_cpu_pins_locals_dict,
4438
};
4539

4640
const mp_obj_type_t pin_board_pins_obj_type = {
4741
{ &mp_type_type },
4842
.name = MP_QSTR_board,
49-
.print = pin_named_pins_obj_print,
5043
.locals_dict = (mp_obj_t)&pin_board_pins_locals_dict,
5144
};
5245

0 commit comments

Comments
 (0)