Skip to content

Commit 2c9c6fc

Browse files
committed
Remove unused static functions
1 parent fcf7cfe commit 2c9c6fc

File tree

4 files changed

+0
-22
lines changed

4 files changed

+0
-22
lines changed

ports/raspberrypi/bindings/rp2pio/StateMachine.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -831,10 +831,3 @@ const mp_obj_type_t rp2pio_statemachine_type = {
831831
.make_new = rp2pio_statemachine_make_new,
832832
.locals_dict = (mp_obj_dict_t *)&rp2pio_statemachine_locals_dict,
833833
};
834-
835-
static rp2pio_statemachine_obj_t *validate_obj_is_statemachine(mp_obj_t obj) {
836-
if (!mp_obj_is_type(obj, &rp2pio_statemachine_type)) {
837-
mp_raise_TypeError_varg(translate("Expected a %q"), rp2pio_statemachine_type.name);
838-
}
839-
return MP_OBJ_TO_PTR(obj);
840-
}

ports/raspberrypi/common-hal/i2ctarget/I2CTarget.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ void common_hal_i2ctarget_i2c_target_deinit(i2ctarget_i2c_target_obj_t *self) {
104104
return;
105105
}
106106

107-
static int i2c_peripheral_check_error(i2ctarget_i2c_target_obj_t *self, bool raise) {
108-
return 0;
109-
}
110-
111107
int common_hal_i2ctarget_i2c_target_is_addressed(i2ctarget_i2c_target_obj_t *self, uint8_t *address, bool *is_read, bool *is_restart) {
112108
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))) {
113109
return 0;

ports/raspberrypi/common-hal/wifi/ScannedNetworks.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ static uint8_t scan_put, scan_get;
4444
static bool scan_full;
4545

4646

47-
static void scan_result_clear() {
48-
scan_put = scan_get = 0;
49-
scan_full = false;
50-
}
51-
5247
static void scan_result_put(const cyw43_ev_scan_result_t *result) {
5348
if (!scan_full) {
5449
scan_results[scan_put] = *result;

ports/raspberrypi/lwip_src/ping.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,6 @@ ping_raw_init(void) {
368368
sys_timeout(PING_DELAY, ping_timeout, ping_pcb);
369369
}
370370

371-
static void
372-
ping_send_now(void) {
373-
LWIP_ASSERT("ping_pcb != NULL", ping_pcb != NULL);
374-
ping_send(ping_pcb, ping_target);
375-
}
376-
377371
#endif /* PING_USE_SOCKETS */
378372

379373
void

0 commit comments

Comments
 (0)