From af7f40063dfed1c651d33b93956c7623a7d2c050 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 29 Nov 2022 14:16:05 -0800 Subject: Complete removal of DifferentialBottom type. (#2537) Co-authored-by: Yong He --- source/slang/slang-ast-type.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'source/slang/slang-ast-type.cpp') diff --git a/source/slang/slang-ast-type.cpp b/source/slang/slang-ast-type.cpp index 3fcc762ec..3801b99b0 100644 --- a/source/slang/slang-ast-type.cpp +++ b/source/slang/slang-ast-type.cpp @@ -169,27 +169,6 @@ Val* BottomType::_substituteImplOverride( HashCode BottomType::_getHashCodeOverride() { return HashCode(size_t(this)); } -// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DifferentialBottomType !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -void DifferentialBottomType::_toTextOverride(StringBuilder& out) { out << toSlice("diff_bottom"); } - -bool DifferentialBottomType::_equalsImplOverride(Type* type) -{ - if (auto bottomType = as(type)) - return true; - return false; -} - -Type* DifferentialBottomType::_createCanonicalTypeOverride() { return this; } - -Val* DifferentialBottomType::_substituteImplOverride( - ASTBuilder* /* astBuilder */, SubstitutionSet /*subst*/, int* /*ioDiff*/) -{ - return this; -} - -HashCode DifferentialBottomType::_getHashCodeOverride() { return HashCode(size_t(this)); } - // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DeclRefType !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! void DeclRefType::_toTextOverride(StringBuilder& out) -- cgit v1.2.3