summaryrefslogtreecommitdiff
path: root/source/fud_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_string.cpp')
-rw-r--r--source/fud_string.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/fud_string.cpp b/source/fud_string.cpp
index 33e41c3..fa34cc9 100644
--- a/source/fud_string.cpp
+++ b/source/fud_string.cpp
@@ -354,13 +354,8 @@ FudStatus String::grow()
return reserveStatus;
}
- auto newCapacity = cap < maxStringLength / 2 ? cap * 2 : maxStringLength - 1U;
- const auto resizeStatus = resize(newCapacity);
- if (resizeStatus != FudStatus::Success) {
- return resizeStatus;
- }
fudAssert(isLarge());
- fudAssert(m_repr.large.capacity == newCapacity);
+ return FudStatus::Success;
}
FudStatus String::reserve(size_t newCapacity)