Remove dumplicate BepInPlugin factory method

This commit is contained in:
ghorsington committed 2019-06-16 19:11:07 +03:00
1 parent a819d06ba5
commit 626985b49e
1 file changed
-10
-10
View File
@@ -60,16 +60,6 @@ namespace BepInEx
return new BepInPlugin((string)attr.ConstructorArguments[0].Value, (string)attr.ConstructorArguments[1].Value, (string)attr.ConstructorArguments[2].Value);
}
internal static BepInPlugin FromCecilType(TypeDefinition td)
{
var attr = MetadataHelper.GetCustomAttributes<BepInPlugin>(td, false).FirstOrDefault();
if (attr == null)
return null;
return new BepInPlugin((string)attr.ConstructorArguments[0].Value, (string)attr.ConstructorArguments[1].Value, (string)attr.ConstructorArguments[2].Value);
}
}
/// <summary>