1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-22 04:37:13 +01:00

Remove string stream header. Remove unused variable.

This commit is contained in:
Sandu Liviu Catalin 2018-10-31 17:34:23 +02:00
parent 82c1154c2b
commit 25bc3ce02c

View File

@ -34,7 +34,6 @@
#include <squirrel.h>
#endif // SQMOD_PLUGIN_API
#include <sstream>
#include "sqratTypes.h"
#include "sqratUtil.h"
#include "sqratGlobalMethods.h"
@ -108,7 +107,7 @@ inline SQInteger OverloadExecutionForwarder(HSQUIRRELVM vm) {
return sq_throwerror(vm, _SC("unable to acquire the proper overload closure"));
}
// Attempt to get the free variable containing the native closure pointer on the stack
const SQChar *name = sq_getonefreevariable(vm, 0);
sq_getonefreevariable(vm, 0);
// This is simply a hack to implement a direct call and gain some performance
// Since both closures expect a free variable we simply replace the free variable
// containing closure name with the free variable containing the closure pointer