Skip to content

Commit

Permalink
remove extra thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
XtraCube committed Feb 3, 2025
1 parent dcf557c commit 145ae30
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions MiraAPI/Utilities/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEngine;

namespace MiraAPI.Utilities;
Expand All @@ -18,22 +17,6 @@ namespace MiraAPI.Utilities;
/// </summary>
public static class Extensions
{
public static IEnumerable<Type> GetTypesSafe(this Assembly assembly)
{
try
{
return assembly.GetTypes();
}
catch (ReflectionTypeLoadException ex)
{
return ex.Types.Where(t => t != null);
}
catch
{
return Enumerable.Empty<Type>();
}
}

internal static NetData GetNetData(this ICustomRole role)
{
var count = role.GetCount();
Expand Down

0 comments on commit 145ae30

Please sign in to comment.