Skip to content

Commit 42e949b

Browse files
committed
sting_buffer: removed commented-out code
1 parent 7163ea0 commit 42e949b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ast_utils/string_buffer.c2

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ public fn Buf* create(u32 capacity, bool use_colors, u32 indent_step) {
5656
return buf.init(nil, capacity, true, use_colors, indent_step);
5757
}
5858

59-
#if 0
60-
// Note: no growing possible
61-
public fn Buf* create_static(u32 capacity, bool use_colors, char* data) {
62-
Buf* buf = malloc(sizeof(Buf));
63-
return buf.init(data, capacity, false, use_colors, 0);
64-
}
65-
#endif
66-
6759
fn void Buf.deinit(Buf* buf) {
6860
if (buf.own) free(buf.data_);
6961
buf.data_ = nil;

0 commit comments

Comments
 (0)