From abdb98a2516a9d6ec313805dffbc2107d38f8ed4 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 28 Apr 2019 22:38:40 +0200 Subject: core: remove unused function StrBufNullAllocPtr() --- core/libdeno/libdeno_test.cc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'core/libdeno/libdeno_test.cc') diff --git a/core/libdeno/libdeno_test.cc b/core/libdeno/libdeno_test.cc index 7b936cc32..2b254b32f 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); -- cgit v1.2.3