NetworkBehaviour: removed unused GetCmdHashPrefixName function

This commit is contained in:
vis2k 2018-12-30 17:31:24 +01:00
parent 98f984182a
commit aed13e68e2

View File

@ -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)]