diff --git a/flang/lib/Semantics/tools.cpp b/flang/lib/Semantics/tools.cpp index 7680d67a5cc4a..2d7fa9de93922 100644 --- a/flang/lib/Semantics/tools.cpp +++ b/flang/lib/Semantics/tools.cpp @@ -434,17 +434,6 @@ const Symbol *FindSubprogram(const Symbol &symbol) { symbol.details()); } -const Symbol *FindFunctionResult(const Symbol &symbol) { - if (const Symbol * subp{FindSubprogram(symbol)}) { - if (const auto &subpDetails{subp->detailsIf()}) { - if (subpDetails->isFunction()) { - return &subpDetails->result(); - } - } - } - return nullptr; -} - const Symbol *FindOverriddenBinding(const Symbol &symbol) { if (symbol.has()) { if (const DeclTypeSpec * parentType{FindParentTypeSpec(symbol.owner())}) {