diff --git a/core/libdeno/libdeno_test.cc b/core/libdeno/libdeno_test.cc index 7b936cc32b..2b254b32f3 100644 --- a/core/libdeno/libdeno_test.cc +++ b/core/libdeno/libdeno_test.cc @@ -54,17 +54,6 @@ deno_buf strbuf(const char* str) { return buf; } -// Same as strbuf but with null alloc_ptr. -deno_buf StrBufNullAllocPtr(const char* str) { - auto len = strlen(str); - deno_buf buf; - buf.alloc_ptr = nullptr; - buf.alloc_len = 0; - buf.data_ptr = reinterpret_cast(strdup(str)); - buf.data_len = len; - return buf; -} - void assert_null(deno_buf b) { EXPECT_EQ(b.alloc_ptr, nullptr); EXPECT_EQ(b.alloc_len, 0u);