aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authormtarik34b <mtarik34b@gmail.com>2025-04-16 13:16:51 +0200
committermtarik34b <mtarik34b@gmail.com>2025-04-16 13:16:51 +0200
commitf4212b60e77e61924c070f44c90b47fb5326a9f1 (patch)
tree454f3afe1f0905788f908caefe5d15440b1a47a8 /core/strings
parent3dcc22fa6d0779e35e193ba4f5fae6b919d89080 (diff)
Remove redundant calls to builder_init
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/strings.odin2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin
index 247638cd6..e15754dff 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -3044,7 +3044,6 @@ left_justify :: proc(str: string, length: int, pad: string, allocator := context
pad_len := rune_count(pad)
b: Builder
- builder_init(&b, allocator)
builder_init(&b, 0, len(str) + (remains/pad_len + 1)*len(pad), allocator) or_return
w := to_writer(&b)
@@ -3079,7 +3078,6 @@ right_justify :: proc(str: string, length: int, pad: string, allocator := contex
pad_len := rune_count(pad)
b: Builder
- builder_init(&b, allocator)
builder_init(&b, 0, len(str) + (remains/pad_len + 1)*len(pad), allocator) or_return
w := to_writer(&b)