Cleanup: remove redundant code

This commit is contained in:
Campbell Barton 2023-04-21 23:27:21 +10:00
parent bc338aac74
commit 5e76622f47
2 changed files with 3 additions and 4 deletions

@ -413,7 +413,9 @@ char32_t BLI_str_utf32_char_to_upper(const char32_t wc)
{ {
if (wc < U'\xFF') { /* Latin. */ if (wc < U'\xFF') { /* Latin. */
if ((wc <= U'z' && wc >= U'a') || (wc <= U'\xF6' && wc >= U'\xE0') || 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 - 32;
} }
return wc; return wc;

@ -116,9 +116,6 @@ static bool meshcache_read_mdd_range_from_time(FILE *fp,
return false; return false;
} }
if (i == mdd_head.frame_tot) {
frame = (float)(mdd_head.frame_tot - 1);
}
if (UNLIKELY(f_time_prev == FLT_MAX)) { if (UNLIKELY(f_time_prev == FLT_MAX)) {
frame = 0.0f; frame = 0.0f;
} }