Cleanup: remove dead code from BLI_str_partition_ex
The check for `from_right` was always false.
This commit is contained in:
@@ -1059,7 +1059,7 @@ size_t BLI_str_partition_ex(const char *str,
|
||||
}
|
||||
}
|
||||
else {
|
||||
tmp = (from_right) ? strrchr(str, *d) : strchr(str, *d);
|
||||
tmp = strchr(str, *d);
|
||||
if (tmp >= end) {
|
||||
tmp = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user