mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
DotNetCompatibility: removed unused functions
This commit is contained in:
parent
0758364b45
commit
4fb628702e
@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Net.Sockets;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Mirror
|
||||
{
|
||||
@ -16,31 +12,5 @@ internal static string GetMethodName(this Delegate func)
|
||||
return func.Method.Name;
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static Type GetBaseType(this Type type)
|
||||
{
|
||||
#if NETFX_CORE
|
||||
return type.GetTypeInfo().BaseType;
|
||||
#else
|
||||
return type.BaseType;
|
||||
#endif
|
||||
}
|
||||
|
||||
internal static string GetErrorCode(this SocketException e)
|
||||
{
|
||||
#if NETFX_CORE
|
||||
return e.SocketErrorCode.ToString();
|
||||
#else
|
||||
return e.ErrorCode.ToString();
|
||||
#endif
|
||||
}
|
||||
|
||||
#if NETFX_CORE
|
||||
internal static bool IsSubclassOf(this Type type, Type baseType)
|
||||
{
|
||||
return WinRTLegacy.TypeExtensions.IsSubClassOf(type, baseType);
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user