[Server] Remove hardcoded debug messages when using script callbacks

sol2-server-rewrite
David Cernat 7 years ago
parent df0f9b0f5e
commit 51fd937250

@ -91,9 +91,6 @@ public:
if (!callback) if (!callback)
continue; continue;
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name);
if (script->script_type == SCRIPT_CPP) if (script->script_type == SCRIPT_CPP)
result = reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...); result = reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...);
#if defined (ENABLE_PAWN) #if defined (ENABLE_PAWN)
@ -134,8 +131,6 @@ public:
if (!callback) if (!callback)
continue; continue;
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name);
if (script->script_type == SCRIPT_CPP) if (script->script_type == SCRIPT_CPP)
reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...); reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...);
#if defined (ENABLE_PAWN) #if defined (ENABLE_PAWN)

Loading…
Cancel
Save