Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-11-06 21:50:03 +0300
committerHans Goudey <h.goudey@me.com>2020-11-06 21:50:03 +0300
commitb3e71ee09802e84d52b7b7aed0c10cecba852431 (patch)
treeb7dc594f2361b6055b59ab2a32c10bff07b2325e /source/blender/blenkernel/intern/unit.c
parentc2b7e83fae35252ad4de57dede91c1670c301af2 (diff)
Cleanup: Remove unused variable
Diffstat (limited to 'source/blender/blenkernel/intern/unit.c')
-rw-r--r--source/blender/blenkernel/intern/unit.c6
1 files changed, 0 insertions, 6 deletions
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;
}