diff --git a/menu/menu_animation.c b/menu/menu_animation.c index 42e71e6146..fc6a3e0794 100644 --- a/menu/menu_animation.c +++ b/menu/menu_animation.c @@ -648,29 +648,9 @@ const char *utf8skip(const char *str, size_t chars) * Take the contents of @str and apply a ticker effect to it, * and write the results in @s. **/ -void test(int a, const char*b, int c) -{ -char hurr[64]; -memset(hurr, 0xFF, 64); -utf8cpy(hurr, a,b,c); -printf("%i", (int)utf8skip(b,3)); -printf("(%i)\"%s\"\n", strlen(hurr),hurr); -} void menu_animation_ticker_str(char *s, size_t len, uint64_t idx, const char *str, bool selected) { -test(16, "abcd", 3); // 3 -test(16, "øøøø", 3); // 3 -test(7, "øøøø", 3); // 3 -test(6, "øøøø", 3); // 2 -test(7, "øøøø", 9); // 3 -test(6, "øøøø", 9); // 2 -test(9, "øøøø", 9); // 4 -test(6, "bøvs", 4); // 4 -test(5, "bøvs", 4); // 3 -test(64, "sit", 2); // 2 -printf("'%c'\n", 0xC2); -exit(0); menu_animation_t *anim = menu_animation_get_ptr(); size_t str_len = utf8len(str); size_t offset = 0; @@ -685,7 +665,6 @@ exit(0); { utf8cpy(s, PATH_MAX, str, len-3); strlcat(s, "...", PATH_MAX); -printf("(%i)(%s)\n",(int)len,s); return; }