Remove some old unused APIs, -350b DFU

This commit is contained in:
Willy-JL
2024-02-09 22:26:15 +00:00
parent 5181f4878d
commit 27ce00b06f
5 changed files with 3 additions and 47 deletions

View File

@@ -567,23 +567,6 @@ void canvas_draw_glyph(Canvas* canvas, uint8_t x, uint8_t y, uint16_t ch) {
u8g2_DrawGlyph(&canvas->fb, x, y, ch);
}
void canvas_draw_icon_bitmap(
Canvas* canvas,
uint8_t x,
uint8_t y,
int16_t w,
int16_t h,
const Icon* icon) {
furi_assert(canvas);
furi_assert(icon);
x += canvas->offset_x;
y += canvas->offset_y;
uint8_t* icon_data = NULL;
compress_icon_decode(canvas->compress_icon, icon_get_data(icon), &icon_data);
u8g2_DrawXBM(&canvas->fb, x, y, w, h, icon_data);
}
void canvas_set_bitmap_mode(Canvas* canvas, bool alpha) {
u8g2_SetBitmapMode(&canvas->fb, alpha ? 1 : 0);
}

View File

@@ -424,14 +424,6 @@ void canvas_draw_rbox(
uint8_t height,
uint8_t radius);
void canvas_draw_icon_bitmap(
Canvas* canvas,
uint8_t x,
uint8_t y,
int16_t w,
int16_t h,
const Icon* icon);
#ifdef __cplusplus
}
#endif

View File

@@ -92,17 +92,6 @@ ButtonPanel* button_panel_alloc() {
return button_panel;
}
void button_panel_reset_selection(ButtonPanel* button_panel) {
with_view_model(
button_panel->view,
ButtonPanelModel * model,
{
model->selected_item_x = 0;
model->selected_item_y = 0;
},
true);
}
void button_panel_reserve(ButtonPanel* button_panel, size_t reserve_x, size_t reserve_y) {
furi_check(reserve_x > 0);
furi_check(reserve_y > 0);

View File

@@ -35,12 +35,6 @@ void button_panel_free(ButtonPanel* button_panel);
*/
void button_panel_reset(ButtonPanel* button_panel);
/** Resets selected_item_x and selected_item_y.
*
* @param button_panel ButtonPanel instance
*/
void button_panel_reset_selection(ButtonPanel* button_panel);
/** Reserve space for adding items.
*
* One does not simply use button_panel_add_item() without this function. It