Skip to content

Commit abdb98a

Browse files
committed
core: remove unused function StrBufNullAllocPtr()
1 parent 8978870 commit abdb98a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

core/libdeno/libdeno_test.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,6 @@ deno_buf strbuf(const char* str) {
5454
return buf;
5555
}
5656

57-
// Same as strbuf but with null alloc_ptr.
58-
deno_buf StrBufNullAllocPtr(const char* str) {
59-
auto len = strlen(str);
60-
deno_buf buf;
61-
buf.alloc_ptr = nullptr;
62-
buf.alloc_len = 0;
63-
buf.data_ptr = reinterpret_cast<uint8_t*>(strdup(str));
64-
buf.data_len = len;
65-
return buf;
66-
}
67-
6857
void assert_null(deno_buf b) {
6958
EXPECT_EQ(b.alloc_ptr, nullptr);
7059
EXPECT_EQ(b.alloc_len, 0u);

0 commit comments

Comments
 (0)