From 6333adad237dd41428caf9f1e88e841aee161893 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 23 Jun 2021 10:40:38 +0300 Subject: [PATCH] v.gen.c: remove unused memfreedup --- vlib/v/gen/c/cheaders.v | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vlib/v/gen/c/cheaders.v b/vlib/v/gen/c/cheaders.v index f16725e5dd..462ae00572 100644 --- a/vlib/v/gen/c/cheaders.v +++ b/vlib/v/gen/c/cheaders.v @@ -273,10 +273,6 @@ void _vcleanup(); void v_free(voidptr ptr); voidptr memdup(voidptr src, int sz); -static voidptr memfreedup(voidptr ptr, voidptr src, int sz) { - v_free(ptr); // heloe - return memdup(src, sz); -} #if INTPTR_MAX == INT32_MAX #define TARGET_IS_32BIT 1 @@ -471,10 +467,6 @@ void _vcleanup(); void v_free(voidptr ptr); voidptr memdup(voidptr src, int sz); -static voidptr memfreedup(voidptr ptr, voidptr src, int sz) { - v_free(ptr); // heloe - return memdup(src, sz); -} '