From 020a16072923a66ae0985be618fd32310aa87242 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 16 Jul 2025 23:43:06 -0700 Subject: Improve lookup performance. (#7798) * Improve lookup performance. * Cleanup. * Improve autocompletion latency. --- source/slang/slang-ast-decl.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source/slang/slang-ast-decl.cpp') diff --git a/source/slang/slang-ast-decl.cpp b/source/slang/slang-ast-decl.cpp index 4d9b8718f..1e2d11600 100644 --- a/source/slang/slang-ast-decl.cpp +++ b/source/slang/slang-ast-decl.cpp @@ -404,25 +404,6 @@ void ContainerDecl::_ensureLookupAcceleratorsAreValid() _directMemberDecls._ensureLookupAcceleratorsAreValid(); } -void ContainerDecl:: - _invalidateLookupAcceleratorsBecauseUnscopedEnumAttributeWillBeTurnedIntoTransparentModifier( - UnscopedEnumAttribute* unscopedEnumAttr, - TransparentModifier* transparentModifier) -{ - if (isUsingOnDemandDeserializationForDirectMembers()) - { - SLANG_UNEXPECTED("this operation shouldn't be performed on deserialized declarations"); - } - - SLANG_ASSERT(unscopedEnumAttr); - SLANG_ASSERT(transparentModifier); - - SLANG_UNUSED(unscopedEnumAttr); - SLANG_UNUSED(transparentModifier); - - _invalidateLookupAccelerators(); -} - void ContainerDecl:: _removeDirectMemberConstructorDeclBecauseSynthesizedAnotherDefaultConstructorInstead( ConstructorDecl* decl) -- cgit v1.2.3