From 0a641597d411fe9fdf8268657329bbc877237839 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 9 Mar 2022 15:49:40 +0100 Subject: [PATCH] prototype: remove alloc/free routines from namespace pEp, they have been moved into the respective classes, (might generalize and extract them later again) --- test/test_nr1.cc | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/test/test_nr1.cc b/test/test_nr1.cc index 639c18f..1a8146e 100644 --- a/test/test_nr1.cc +++ b/test/test_nr1.cc @@ -13,34 +13,6 @@ namespace pEp { - char* alloc_str(const std::string& str) - { - char* ret = strdup(str.c_str()); - pEpLog(CXX::Inspect::all(ret)); - return ret; - } - - template - void free(T ptr_type) - { - pEpLog(CXX::Inspect::all(ptr_type)); - ::pEp_free(ptr_type); - } - - template<> - void free(char* ptr_type) - { - pEpLog(CXX::Inspect::all(ptr_type)); - ::pEp_free(ptr_type); - } - - template<> - void free(::pEp_identity* ptr_type) - { - pEpLog(CXX::Inspect::all(ptr_type)); - ::pEp_free(ptr_type); - } - //--------------------------------------------------------------------------------------------- #define EXSTR(msg) std::string(__FUNCTION__) + "() - " + msg