Skip to content

Commit 9c3ed5a

Browse files
authored
[NFC] [FlowSensitive] [StatusOr] remove unused function (#164351)
1 parent b74801a commit 9c3ed5a

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

clang/include/clang/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ BoolValue &initializeStatusOr(RecordStorageLocation &StatusOrLoc,
5656
// N.B. if it is already initialized, the value gets reset.
5757
BoolValue &initializeStatus(RecordStorageLocation &StatusLoc, Environment &Env);
5858

59-
bool isRecordTypeWithName(QualType Type, llvm::StringRef TypeName);
6059
// Return true if `Type` is instantiation of `absl::StatusOr<T>`
6160
bool isStatusOrType(QualType Type);
6261
// Return true if `Type` is `absl::Status`

clang/lib/Analysis/FlowSensitive/Models/UncheckedStatusOrAccessModel.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ clang::ast_matchers::TypeMatcher statusOrType() {
200200
return hasCanonicalType(qualType(hasDeclaration(statusOrClass())));
201201
}
202202

203-
bool isRecordTypeWithName(QualType Type, llvm::StringRef TypeName) {
204-
return Type->isRecordType() &&
205-
Type->getAsCXXRecordDecl()->getQualifiedNameAsString() == TypeName;
206-
}
207-
208203
bool isStatusOrType(QualType Type) {
209204
return isTypeNamed(Type, {"absl"}, "StatusOr");
210205
}

0 commit comments

Comments
 (0)