Remove Exts.WithDefault

This commit is contained in:
RoosterDragon
2023-07-07 20:35:14 +01:00
committed by Matthias Mailänder
parent 169c60883b
commit 388222c5c7
2 changed files with 2 additions and 7 deletions

View File

@@ -32,12 +32,6 @@ namespace OpenRA
return string.Format(CultureInfo.CurrentCulture, format, args);
}
public static T WithDefault<T>(T def, Func<T> f)
{
try { return f(); }
catch { return def; }
}
public static Lazy<T> Lazy<T>(Func<T> p) { return new Lazy<T>(p); }
public static IEnumerable<string> GetNamespaces(this Assembly a)