diff --git a/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h b/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h index cb619fb0cb5bb..24f8b0b99870a 100644 --- a/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h +++ b/clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h @@ -56,7 +56,6 @@ BoolValue &initializeStatusOr(RecordStorageLocation &StatusOrLoc, // N.B. if it is already initialized, the value gets reset. BoolValue &initializeStatus(RecordStorageLocation &StatusLoc, Environment &Env); -bool isRecordTypeWithName(QualType Type, llvm::StringRef TypeName); // Return true if `Type` is instantiation of `absl::StatusOr` bool isStatusOrType(QualType Type); // Return true if `Type` is `absl::Status` diff --git a/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp b/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp index 75b0959491c22..c88a4702cae07 100644 --- a/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp +++ b/clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp @@ -200,11 +200,6 @@ clang::ast_matchers::TypeMatcher statusOrType() { return hasCanonicalType(qualType(hasDeclaration(statusOrClass()))); } -bool isRecordTypeWithName(QualType Type, llvm::StringRef TypeName) { - return Type->isRecordType() && - Type->getAsCXXRecordDecl()->getQualifiedNameAsString() == TypeName; -} - bool isStatusOrType(QualType Type) { return isTypeNamed(Type, {"absl"}, "StatusOr"); }