From a0fed47163b566fbaae19aa0e7805bd59fd446e9 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 21 Jun 2022 14:56:17 +0100 Subject: [PATCH] Remove duplicate typemaps --- Lib/cffi/cffi.swg | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Lib/cffi/cffi.swg b/Lib/cffi/cffi.swg index f7294956f..690081032 100644 --- a/Lib/cffi/cffi.swg +++ b/Lib/cffi/cffi.swg @@ -201,15 +201,6 @@ ;;;SWIG wrapper code ends here %} -#ifdef __cplusplus -%typemap(out) SWIGTYPE "$result = new $1_type($1);"; -#else -%typemap(out) SWIGTYPE { - $result = ($&1_ltype) malloc(sizeof($1_type)); - memmove($result, &$1, sizeof($1_type)); -} -#endif - ////////////////////////////////////////////////////////////// /* name conversion for overloaded operators. */