Commit: b3e71ee09802e84d52b7b7aed0c10cecba852431 Author: Hans Goudey Date: Fri Nov 6 12:50:03 2020 -0600 Branches: master https://developer.blender.org/rBb3e71ee09802e84d52b7b7aed0c10cecba852431
Cleanup: Remove unused variable =================================================================== M source/blender/blenkernel/intern/unit.c =================================================================== diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index 249a35a0af8..b55f80c6473 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -802,17 +802,12 @@ static char *find_next_negative(const char *str, const char *remaining_str) static char *find_next_op(const char *str, char *remaining_str, int len_max) { int i; - bool scientific_notation = false; for (i = 0; i < len_max; i++) { if (remaining_str[i] == '\0') { return remaining_str + i; } if (ch_is_op(remaining_str[i])) { - if (scientific_notation) { - scientific_notation = false; - } - /* Make sure we don't look backwards before the start of the string. */ if (remaining_str != str && i != 0) { /* Check for velocity or acceleration (e.g. '/' in 'ft/s' is not an op). */ @@ -823,7 +818,6 @@ static char *find_next_op(const char *str, char *remaining_str, int len_max) /* Check for scientific notation. */ if (ELEM(remaining_str[i - 1], 'e', 'E')) { - scientific_notation = true; continue; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs