diff --git a/source/util/src/tfunctional.c b/source/util/src/tfunctional.c index 3b51d0046fa43222157eca76b509bf5696ef309c..d8f1e3332498823cf51742131149b9a14c90092c 100644 --- a/source/util/src/tfunctional.c +++ b/source/util/src/tfunctional.c @@ -16,6 +16,9 @@ #define _DEFAULT_SOURCE #include "tfunctional.h" +FORCE_INLINE void* genericInvoke(tGenericSavedFunc* const pSavedFunc) { return pSavedFunc->func(pSavedFunc->args); } + +#if 0 tGenericSavedFunc* genericSavedFuncInit(GenericVaFunc func, int32_t numOfArgs) { tGenericSavedFunc* pSavedFunc = taosMemoryMalloc(sizeof(tGenericSavedFunc) + numOfArgs * (sizeof(void*))); if (pSavedFunc == NULL) return NULL; @@ -37,10 +40,9 @@ tVoidSavedFunc* voidSavedFuncInit(VoidVaFunc func, int32_t numOfArgs) { return pSavedFunc; } -FORCE_INLINE void* genericInvoke(tGenericSavedFunc* const pSavedFunc) { return pSavedFunc->func(pSavedFunc->args); } - FORCE_INLINE int32_t i32Invoke(tI32SavedFunc* const pSavedFunc) { return pSavedFunc->func(pSavedFunc->args); } FORCE_INLINE void voidInvoke(tVoidSavedFunc* const pSavedFunc) { if (pSavedFunc) pSavedFunc->func(pSavedFunc->args); } +#endif \ No newline at end of file