From e396c375a108f9be491488b876ac57e889f5c752 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 27 May 2023 10:29:23 -0700 Subject: [PATCH] [AST] Remove unused function removeLocalCVRQualifiers The last use was removed by: commit 0eb06cb3aa2700508c20da28f22ff91e7b82a436 Author: Roy Jacobson Date: Tue Mar 14 21:25:54 2023 +0200 Differential Revision: https://reviews.llvm.org/D151607 --- clang/include/clang/AST/Type.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/clang/include/clang/AST/Type.h b/clang/include/clang/AST/Type.h index a95728b..e60438a 100644 --- a/clang/include/clang/AST/Type.h +++ b/clang/include/clang/AST/Type.h @@ -948,7 +948,6 @@ public: void removeLocalConst(); void removeLocalVolatile(); void removeLocalRestrict(); - void removeLocalCVRQualifiers(unsigned Mask); void removeLocalFastQualifiers() { Value.setInt(0); } void removeLocalFastQualifiers(unsigned Mask) { @@ -6781,15 +6780,6 @@ inline void QualType::removeLocalVolatile() { removeLocalFastQualifiers(Qualifiers::Volatile); } -inline void QualType::removeLocalCVRQualifiers(unsigned Mask) { - assert(!(Mask & ~Qualifiers::CVRMask) && "mask has non-CVR bits"); - static_assert((int)Qualifiers::CVRMask == (int)Qualifiers::FastMask, - "Fast bits differ from CVR bits!"); - - // Fast path: we don't need to touch the slow qualifiers. - removeLocalFastQualifiers(Mask); -} - /// Check if this type has any address space qualifier. inline bool QualType::hasAddressSpace() const { return getQualifiers().hasAddressSpace(); -- 2.7.4