diff --git a/flang/lib/Semantics/tools.cpp b/flang/lib/Semantics/tools.cpp --- a/flang/lib/Semantics/tools.cpp +++ b/flang/lib/Semantics/tools.cpp @@ -434,17 +434,6 @@ 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())}) {