diff --git a/IDE/mintest/minlib/src/System/Type.bf b/IDE/mintest/minlib/src/System/Type.bf index 8df7f21d..f85f1cda 100644 --- a/IDE/mintest/minlib/src/System/Type.bf +++ b/IDE/mintest/minlib/src/System/Type.bf @@ -470,13 +470,6 @@ namespace System return FieldInfo.Enumerator(null, bindingFlags); } - public Result GetCustomAttribute() where T : Attribute - { - if (var typeInstance = this as TypeInstance) - return typeInstance.[Friend]GetCustomAttribute(typeInstance.[Friend]mCustomAttributesIdx); - return .Err; - } - public override void ToString(String strBuffer) { GetFullName(strBuffer); @@ -752,22 +745,6 @@ namespace System.Reflection { return FieldInfo.Enumerator(this, bindingFlags); } - - Result GetCustomAttribute(int customAttributeIdx) where T : Attribute - { - if (customAttributeIdx == -1) - return .Err; - - void* data = mCustomAttrDataPtr[customAttributeIdx]; - - T attrInst = ?; - switch (AttributeInfo.GetCustomAttribute(data, typeof(T), &attrInst)) - { - case .Ok: return .Ok(attrInst); - default: - return .Err; - } - } } [Ordered, AlwaysInclude(AssumeInstantiated=true)]