mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[raknet] Remove RPCMap::RemoveNode(...)
This commit is contained in:
parent
1af47512f6
commit
12ac4bf95b
@ -151,17 +151,3 @@ void RPCMap::AddIdentifierAtIndex(char *uniqueIdentifier, RPCIndex insertionInde
|
||||
}
|
||||
}
|
||||
|
||||
void RPCMap::RemoveNode(char *uniqueIdentifier)
|
||||
{
|
||||
unsigned index;
|
||||
index=GetIndexFromFunctionName(uniqueIdentifier);
|
||||
#ifdef _DEBUG
|
||||
assert(index!=UNDEFINED_RPC_INDEX); // If this hits then the user was removing an RPC call that wasn't currently registered
|
||||
#endif
|
||||
RPCNode *node;
|
||||
node = rpcSet[index];
|
||||
delete [] node->uniqueIdentifier;
|
||||
delete node;
|
||||
rpcSet[index]=0;
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
RPCIndex GetIndexFromFunctionName(char *uniqueIdentifier);
|
||||
void AddIdentifierWithFunction(char *uniqueIdentifier, void *functionPointer, bool isPointerToMember);
|
||||
void AddIdentifierAtIndex(char *uniqueIdentifier, RPCIndex insertionIndex);
|
||||
void RemoveNode(char *uniqueIdentifier);
|
||||
|
||||
protected:
|
||||
DataStructures::List<RPCNode *> rpcSet;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user