summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-13 14:30:37 -0500
committerYong He <yonghe@outlook.com>2018-01-13 14:30:37 -0500
commit99f49e42fd3d55b0404261379d68dcca2b350209 (patch)
treec825b9bb327cca879c148069e1d9c74c68b59226 /source/slang/syntax.cpp
parent4b284daeb0cc3f6df0835befad4326c81abeb374 (diff)
remove out-of-date changes
Diffstat (limited to 'source/slang/syntax.cpp')
-rw-r--r--source/slang/syntax.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp
index cdcb623ff..2ed10e138 100644
--- a/source/slang/syntax.cpp
+++ b/source/slang/syntax.cpp
@@ -1949,39 +1949,5 @@ void Type::accept(IValVisitor* visitor, void* extra)
rs = combineHash(rs, globalGenParamSubstitutions->GetHashCode());
return rs;
}
-
- RefPtr<Substitutions> cloneSubstitutionNonRecursive(RefPtr<Substitutions> subst)
- {
- if (!subst)
- return nullptr;
- if (auto genSubst = dynamic_cast<GenericSubstitution*>(subst.Ptr()))
- {
- RefPtr<GenericSubstitution> newSubst = new GenericSubstitution();
- newSubst->genericDecl = genSubst->genericDecl;
-
- for (auto arg : genSubst->args)
- {
- newSubst->args.Add(arg);
- }
- return newSubst;
- }
- else if (auto thisSubst = dynamic_cast<ThisTypeSubstitution*>(subst.Ptr()))
- {
- RefPtr<ThisTypeSubstitution> newSubst = new ThisTypeSubstitution();
- newSubst->sourceType = thisSubst->sourceType;
- return newSubst;
- }
- else if (auto genTypeSubst = dynamic_cast<GlobalGenericParamSubstitution*>(subst.Ptr()))
- {
- RefPtr<GlobalGenericParamSubstitution> newSubst = new GlobalGenericParamSubstitution();
- newSubst->actualType = genTypeSubst->actualType;
- newSubst->paramDecl = genTypeSubst->paramDecl;
- newSubst->witnessTables = genTypeSubst->witnessTables;
- return newSubst;
- }
- else
- SLANG_UNREACHABLE("unimplemented cloneSubstitution");
- UNREACHABLE_RETURN(nullptr);
- }
}