diff --git a/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h b/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h --- a/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h +++ b/clang/include/clang/Analysis/FlowSensitive/ControlFlowContext.h @@ -35,10 +35,6 @@ static llvm::Expected build(const Decl *D, Stmt &S, ASTContext &C); - // DEPRECATED. Use overload above. - static llvm::Expected build(const Decl *D, Stmt *S, - ASTContext *C); - /// Returns the `Decl` containing the statement used to construct the CFG, if /// available. const Decl *getDecl() const { return ContainingDecl; } diff --git a/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp b/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp --- a/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp +++ b/clang/lib/Analysis/FlowSensitive/ControlFlowContext.cpp @@ -67,12 +67,5 @@ return ControlFlowContext(D, std::move(Cfg), std::move(StmtToBlock)); } -llvm::Expected -ControlFlowContext::build(const Decl *D, Stmt *S, ASTContext *C) { - assert(S != nullptr); - assert(C != nullptr); - return build(D, *S, *C); -} - } // namespace dataflow } // namespace clang