Skip to content

Commit e797547

Browse files
committed
Revert "Revert "v.gen.c: remove unused memfreedup""
This reverts commit 72c12b6.
1 parent 7458927 commit e797547

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

vlib/v/gen/c/cheaders.v

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ void _vcleanup();
273273
274274
void v_free(voidptr ptr);
275275
voidptr memdup(voidptr src, int sz);
276-
static voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
277-
v_free(ptr); // heloe
278-
return memdup(src, sz);
279-
}
280276
281277
#if INTPTR_MAX == INT32_MAX
282278
#define TARGET_IS_32BIT 1
@@ -471,10 +467,6 @@ void _vcleanup();
471467
472468
void v_free(voidptr ptr);
473469
voidptr memdup(voidptr src, int sz);
474-
static voidptr memfreedup(voidptr ptr, voidptr src, int sz) {
475-
v_free(ptr); // heloe
476-
return memdup(src, sz);
477-
}
478470
479471
'
480472

0 commit comments

Comments
 (0)