mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkBehaviour: removed unused GetCmdHashPrefixName function
This commit is contained in:
parent
98f984182a
commit
aed13e68e2
@ -342,23 +342,6 @@ internal static string GetCmdHashHandlerName(int cmdHash)
|
|||||||
return inv.invokeType + ":" + inv.invokeFunction.GetMethodName();
|
return inv.invokeType + ":" + inv.invokeFunction.GetMethodName();
|
||||||
}
|
}
|
||||||
|
|
||||||
static string GetCmdHashPrefixName(int cmdHash, string prefix)
|
|
||||||
{
|
|
||||||
if (!s_CmdHandlerDelegates.ContainsKey(cmdHash))
|
|
||||||
{
|
|
||||||
return cmdHash.ToString();
|
|
||||||
}
|
|
||||||
Invoker inv = s_CmdHandlerDelegates[cmdHash];
|
|
||||||
string name = inv.invokeFunction.GetMethodName();
|
|
||||||
|
|
||||||
int index = name.IndexOf(prefix);
|
|
||||||
if (index > -1)
|
|
||||||
{
|
|
||||||
name = name.Substring(prefix.Length);
|
|
||||||
}
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ----------------------------- Helpers --------------------------------
|
// ----------------------------- Helpers --------------------------------
|
||||||
|
|
||||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||||
|
Loading…
Reference in New Issue
Block a user