added backwards compat layer to old mysql module
This commit is contained in:
@ -6,7 +6,6 @@ using namespace SourceMod;
|
||||
using namespace SourceHook;
|
||||
|
||||
MysqlDriver g_Mysql;
|
||||
List<unsigned int> g_ConnectionInfo;
|
||||
|
||||
void FreeConnection(void *p, unsigned int num)
|
||||
{
|
||||
@ -17,8 +16,6 @@ void FreeConnection(void *p, unsigned int num)
|
||||
free(cn->pass);
|
||||
free(cn->db);
|
||||
|
||||
g_ConnectionInfo.remove(num);
|
||||
|
||||
delete cn;
|
||||
}
|
||||
|
||||
@ -60,8 +57,6 @@ static cell AMX_NATIVE_CALL SQL_MakeDbTuple(AMX *amx, cell *params)
|
||||
|
||||
unsigned int num = MakeHandle(sql, Handle_Connection, FreeConnection);
|
||||
|
||||
g_ConnectionInfo.push_back(num);
|
||||
|
||||
return num;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user