diff --git a/ports/raspberrypi/bindings/rp2pio/StateMachine.c b/ports/raspberrypi/bindings/rp2pio/StateMachine.c index 9e5ded5288..c1f56fbc65 100644 --- a/ports/raspberrypi/bindings/rp2pio/StateMachine.c +++ b/ports/raspberrypi/bindings/rp2pio/StateMachine.c @@ -831,10 +831,3 @@ const mp_obj_type_t rp2pio_statemachine_type = { .make_new = rp2pio_statemachine_make_new, .locals_dict = (mp_obj_dict_t *)&rp2pio_statemachine_locals_dict, }; - -static rp2pio_statemachine_obj_t *validate_obj_is_statemachine(mp_obj_t obj) { - if (!mp_obj_is_type(obj, &rp2pio_statemachine_type)) { - mp_raise_TypeError_varg(translate("Expected a %q"), rp2pio_statemachine_type.name); - } - return MP_OBJ_TO_PTR(obj); -} diff --git a/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c b/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c index 43cb43a9f9..fc9bf55327 100644 --- a/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c +++ b/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c @@ -104,10 +104,6 @@ void common_hal_i2ctarget_i2c_target_deinit(i2ctarget_i2c_target_obj_t *self) { return; } -static int i2c_peripheral_check_error(i2ctarget_i2c_target_obj_t *self, bool raise) { - return 0; -} - int common_hal_i2ctarget_i2c_target_is_addressed(i2ctarget_i2c_target_obj_t *self, uint8_t *address, bool *is_read, bool *is_restart) { if (!((self->peripheral->hw->raw_intr_stat & I2C_IC_INTR_STAT_R_RX_FULL_BITS) || (self->peripheral->hw->raw_intr_stat & I2C_IC_INTR_STAT_R_RD_REQ_BITS))) { return 0; diff --git a/ports/raspberrypi/common-hal/wifi/ScannedNetworks.c b/ports/raspberrypi/common-hal/wifi/ScannedNetworks.c index fd180da3b1..3488fc0eb5 100644 --- a/ports/raspberrypi/common-hal/wifi/ScannedNetworks.c +++ b/ports/raspberrypi/common-hal/wifi/ScannedNetworks.c @@ -44,11 +44,6 @@ static uint8_t scan_put, scan_get; static bool scan_full; -static void scan_result_clear() { - scan_put = scan_get = 0; - scan_full = false; -} - static void scan_result_put(const cyw43_ev_scan_result_t *result) { if (!scan_full) { scan_results[scan_put] = *result; diff --git a/ports/raspberrypi/lwip_src/ping.c b/ports/raspberrypi/lwip_src/ping.c index d5173cab96..e59b4d6662 100644 --- a/ports/raspberrypi/lwip_src/ping.c +++ b/ports/raspberrypi/lwip_src/ping.c @@ -368,12 +368,6 @@ ping_raw_init(void) { sys_timeout(PING_DELAY, ping_timeout, ping_pcb); } -static void -ping_send_now(void) { - LWIP_ASSERT("ping_pcb != NULL", ping_pcb != NULL); - ping_send(ping_pcb, ping_target); -} - #endif /* PING_USE_SOCKETS */ void