DotNetCompatibility: removed unused functions

This commit is contained in:
vis2k 2018-11-03 10:22:24 +01:00
parent 0758364b45
commit 4fb628702e

View File

@ -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
}
}