From 9f04792baa005ad2d828f129cd976d5252f095cd Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Thu, 2 Jul 2020 11:45:30 -0700 Subject: [PATCH] Fixed minlib Type --- IDE/mintest/minlib/src/System/Type.bf | 23 ----------------------- 1 file changed, 23 deletions(-) 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)]