Remove unused code

pull/39/head
FreddyD 6 years ago
parent 1b4bb30a41
commit a1f997c126

@ -59,14 +59,6 @@ namespace System
&& !type.IsInterface
&& (!type.IsGenericType || !type.IsGenericTypeDefinition);
public static bool IsGrouping(this Type type) => IsGrouping(type.GetTypeInfo());
// TODO: Is this method ever actually called?
private static bool IsGrouping(TypeInfo type)
=> type.IsGenericType
&& (type.GetGenericTypeDefinition() == typeof(IGrouping<,>)
|| type.GetGenericTypeDefinition() == typeof(IAsyncGrouping<,>));
public static Type UnwrapEnumType(this Type type)
{
var isNullable = type.IsNullableType();

Loading…
Cancel
Save