Remove unused static functions
This commit is contained in:
parent
fcf7cfe838
commit
2c9c6fc80e
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue