[clang] [APINotes] Remove unused API (PR #98943)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 11:39:20 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Egor Zhdan (egorzhdan)
<details>
<summary>Changes</summary>
This method is not actually used anywhere.
---
Full diff: https://github.com/llvm/llvm-project/pull/98943.diff
1 Files Affected:
- (modified) clang/include/clang/APINotes/Types.h (-7)
``````````diff
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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/98943
More information about the cfe-commits
mailing list