Skip to content

Commit 5cdf941

Browse files
committed
---
yaml --- r: 497 b: refs/heads/master c: 22719e4 h: refs/heads/master i: 495: f7e3a19 v: v3
1 parent 240cf96 commit 5cdf941

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 74e12fcef682acdbec6c3f4a3fb29b7583e7d1b6
2+
refs/heads/master: 22719e45b81fe2985868afa0935cd7b3a5cf6d05

trunk/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)