From c6e6b7a9177bf4f7fc2f05da36c5952979006d78 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 4 Nov 2022 09:36:23 -0700 Subject: Higher order differentiation. (#2487) Co-authored-by: Yong He --- source/slang/slang-check-modifier.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'source/slang/slang-check-modifier.cpp') diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index 91f655a15..d8b05198c 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -484,27 +484,6 @@ namespace Slang return false; } } - else if (auto builtinAssocTypeAttr = as(attr)) - { - if (attr->args.getCount() == 1) - { - //IntVal* outIntVal; - if (auto cInt = checkConstantEnumVal(attr->args[0])) - { - builtinAssocTypeAttr->kind = (BuiltinRequirementKind)(cInt->value); - } - else - { - getSink()->diagnose(attr, Diagnostics::expectedSingleIntArg, attr->keywordName); - return false; - } - } - else - { - getSink()->diagnose(attr, Diagnostics::expectedSingleIntArg, attr->keywordName); - return false; - } - } else if (auto unrollAttr = as(attr)) { // Check has an argument. We need this because default behavior is to give an error -- cgit v1.2.3