[clang] [APINotes] Remove unused API (PR #98943)

Egor Zhdan via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 11:38:51 PDT 2024


https://github.com/egorzhdan created https://github.com/llvm/llvm-project/pull/98943

This method is not actually used anywhere.

>From 4010859ca13a79d55a7b47f9363ee32870b7f1ef Mon Sep 17 00:00:00 2001
From: Egor Zhdan <e_zhdan at apple.com>
Date: Mon, 15 Jul 2024 19:37:13 +0100
Subject: [PATCH] [APINotes] Remove unused API

This method is not actually used anywhere.
---
 clang/include/clang/APINotes/Types.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/clang/include/clang/APINotes/Types.h b/clang/include/clang/APINotes/Types.h
index daf2f1897f46b..b389aa8d56f16 100644
--- a/clang/include/clang/APINotes/Types.h
+++ b/clang/include/clang/APINotes/Types.h
@@ -263,13 +263,6 @@ class ContextInfo : public CommonTypeInfo {
     SwiftObjCMembers = Value.value_or(false);
   }
 
-  /// Strip off any information within the class information structure that is
-  /// module-local, such as 'audited' flags.
-  void stripModuleLocalInfo() {
-    HasDefaultNullability = false;
-    DefaultNullability = 0;
-  }
-
   friend bool operator==(const ContextInfo &, const ContextInfo &);
 
   ContextInfo &operator|=(const ContextInfo &RHS) {



More information about the cfe-commits mailing list