Skip to content

Commit 22719e4

Browse files
committed
Remove commented-out code that slipped in during last commit.
1 parent 74e12fc commit 22719e4

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/rt/rust_builtin.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,6 @@ str_from_vec(rust_task *task, rust_vec *v)
166166
return st;
167167
}
168168

169-
/*
170-
extern "C" CDECL rust_str*
171-
str_alloc(rust_task *task, size_t n_bytes)
172-
{
173-
rust_dom *dom = task->dom;
174-
size_t alloc = next_power_of_two(sizeof(rust_str) + n_bytes);
175-
void *mem = dom->malloc(alloc);
176-
if (!mem) {
177-
task->fail(2);
178-
return NULL;
179-
}
180-
rust_str *st = new (mem) rust_str(dom, alloc, 1, (uint8_t const *)"");
181-
return st;
182-
}
183-
*/
184-
185169
extern "C" CDECL void *
186170
rand_new(rust_task *task)
187171
{

0 commit comments

Comments
 (0)