From 5e76622f47ba0c905f58c4d660b051b9f5dcb1ab Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 21 Apr 2023 23:27:21 +1000 Subject: [PATCH] Cleanup: remove redundant code --- source/blender/blenlib/intern/string_utf8.c | 4 +++- source/blender/modifiers/intern/MOD_meshcache_mdd.c | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c index e1977427b68..0f32db4a79e 100644 --- a/source/blender/blenlib/intern/string_utf8.c +++ b/source/blender/blenlib/intern/string_utf8.c @@ -413,7 +413,9 @@ char32_t BLI_str_utf32_char_to_upper(const char32_t wc) { if (wc < U'\xFF') { /* Latin. */ if ((wc <= U'z' && wc >= U'a') || (wc <= U'\xF6' && wc >= U'\xE0') || - (wc <= U'\xFE' && wc >= U'\xF8')) { + /* Correct but the first case is know, only check the second */ + // (wc <= U'\xFE' && wc >= U'\xF8') + (wc >= U'\xF8')) { return wc - 32; } return wc; diff --git a/source/blender/modifiers/intern/MOD_meshcache_mdd.c b/source/blender/modifiers/intern/MOD_meshcache_mdd.c index 67a01b1c8d5..0a812c42fe5 100644 --- a/source/blender/modifiers/intern/MOD_meshcache_mdd.c +++ b/source/blender/modifiers/intern/MOD_meshcache_mdd.c @@ -116,9 +116,6 @@ static bool meshcache_read_mdd_range_from_time(FILE *fp, return false; } - if (i == mdd_head.frame_tot) { - frame = (float)(mdd_head.frame_tot - 1); - } if (UNLIKELY(f_time_prev == FLT_MAX)) { frame = 0.0f; }