summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ast-builder.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-08-09 09:11:23 -0700
committerGitHub <noreply@github.com>2023-08-09 09:11:23 -0700
commitc4615fe0ae7e1849b23e9a96d1453794b0b40e90 (patch)
tree0d8d4eed0c90df9664420737d60749f391c11ffb /source/slang/slang-ast-builder.cpp
parent793a29afc9539f893883b5ad8d88639d63f401e0 (diff)
Clean up and improve Val deduplication performance. (#3069)
* Clean up and improve Val deuplication performance. * Fix. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-builder.cpp')
-rw-r--r--source/slang/slang-ast-builder.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/slang/slang-ast-builder.cpp b/source/slang/slang-ast-builder.cpp
index 96fb6ac79..bb4f53433 100644
--- a/source/slang/slang-ast-builder.cpp
+++ b/source/slang/slang-ast-builder.cpp
@@ -274,14 +274,6 @@ void ASTBuilder::incrementEpoch()
_getGlobalASTEpochId()++;
}
-void ASTBuilder::_verifyValDescConsistency(Val* val, const ValNodeDesc& expectedDesc)
-{
- if (!val)
- return;
- ValNodeDesc descOut = val->getDesc();
- SLANG_ASSERT(descOut == expectedDesc);
-}
-
NodeBase* ASTBuilder::createByNodeType(ASTNodeType nodeType)
{
const ReflectClassInfo* info = ASTClassInfo::getInfo(nodeType);