From d42cea3818e154945ac7649bb2031822192adddb Mon Sep 17 00:00:00 2001 From: obrusvit Date: Mon, 9 Dec 2024 11:57:13 +0100 Subject: [PATCH] fixup! refactor(core): remove UTF-8 support from C --- core/embed/gfx/fonts/fonts.c | 3 --- core/embed/gfx/fonts/fonts.h | 2 +- core/embed/rust/librust_fonts.h | 1 - core/embed/upymod/rustmods.c | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 core/embed/rust/librust_fonts.h diff --git a/core/embed/gfx/fonts/fonts.c b/core/embed/gfx/fonts/fonts.c index b2b5b67021..446a8bfe24 100644 --- a/core/embed/gfx/fonts/fonts.c +++ b/core/embed/gfx/fonts/fonts.c @@ -20,9 +20,6 @@ #include #include "fonts.h" -#ifdef TRANSLATIONS -#include "librust_fonts.h" -#endif // include selectively based on the SCons variables #ifdef TREZOR_FONT_NORMAL_ENABLE diff --git a/core/embed/gfx/fonts/fonts.h b/core/embed/gfx/fonts/fonts.h index 9fc1919764..caad39101b 100644 --- a/core/embed/gfx/fonts/fonts.h +++ b/core/embed/gfx/fonts/fonts.h @@ -21,7 +21,7 @@ #define _FONTS_H #include -#include +#include #include "font_bitmap.h" #ifdef USE_RGB_COLORS diff --git a/core/embed/rust/librust_fonts.h b/core/embed/rust/librust_fonts.h deleted file mode 100644 index 17249c4b1b..0000000000 --- a/core/embed/rust/librust_fonts.h +++ /dev/null @@ -1 +0,0 @@ -const uint8_t *get_utf8_glyph(uint16_t char_code, int font); diff --git a/core/embed/upymod/rustmods.c b/core/embed/upymod/rustmods.c index 2673bceb55..128c06ecb6 100644 --- a/core/embed/upymod/rustmods.c +++ b/core/embed/upymod/rustmods.c @@ -18,7 +18,6 @@ */ #include "librust.h" -#include "librust_fonts.h" #include "py/runtime.h" #if MICROPY_PY_TREZORUI2