[clang] d0c778c - [NFC] Remove unused member function 'Error' from PCHValidator
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 6 22:14:12 PST 2023
Author: Chuanqi Xu
Date: 2023-11-07T14:13:33+08:00
New Revision: d0c778c882f117182f8a43d0f986cc8c2cfbb688
URL: https://github.com/llvm/llvm-project/commit/d0c778c882f117182f8a43d0f986cc8c2cfbb688
DIFF: https://github.com/llvm/llvm-project/commit/d0c778c882f117182f8a43d0f986cc8c2cfbb688.diff
LOG: [NFC] Remove unused member function 'Error' from PCHValidator
As the title suggested.
Added:
Modified:
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ASTRecordReader.h
Removed:
################################################################################
diff --git a/clang/include/clang/Serialization/ASTReader.h b/clang/include/clang/Serialization/ASTReader.h
index bafbe779d60acff..7eefdca6815cdad 100644
--- a/clang/include/clang/Serialization/ASTReader.h
+++ b/clang/include/clang/Serialization/ASTReader.h
@@ -312,9 +312,6 @@ class PCHValidator : public ASTReaderListener {
StringRef SpecificModuleCachePath,
bool Complain) override;
void ReadCounter(const serialization::ModuleFile &M, unsigned Value) override;
-
-private:
- void Error(const char *Msg);
};
/// ASTReaderListenter implementation to set SuggestedPredefines of
diff --git a/clang/include/clang/Serialization/ASTRecordReader.h b/clang/include/clang/Serialization/ASTRecordReader.h
index d643e54e3d923a7..80a1359fd16aa02 100644
--- a/clang/include/clang/Serialization/ASTRecordReader.h
+++ b/clang/include/clang/Serialization/ASTRecordReader.h
@@ -370,10 +370,6 @@ struct SavedStreamPosition {
uint64_t Offset;
};
-inline void PCHValidator::Error(const char *Msg) {
- Reader.Error(Msg);
-}
-
} // namespace clang
#endif
More information about the cfe-commits
mailing list