[clang] [Clang][Sema] Remove unused function after #88731 (PR #89618)

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 08:58:41 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Krystian Stasiowski (sdkrystian)

<details>
<summary>Changes</summary>

Removes an unused static function `IsOverloaded` from `SemaOverload.cpp` that is unused after #<!-- -->88731.

---
Full diff: https://github.com/llvm/llvm-project/pull/89618.diff


1 Files Affected:

- (modified) clang/lib/Sema/SemaOverload.cpp (-6) 


``````````diff
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index a2763e331357fa..04cd9e78739d20 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -14261,12 +14261,6 @@ ExprResult Sema::BuildOverloadedCallExpr(Scope *S, Expr *Fn,
                                   OverloadResult, AllowTypoCorrection);
 }
 
-static bool IsOverloaded(const UnresolvedSetImpl &Functions) {
-  return Functions.size() > 1 ||
-         (Functions.size() == 1 &&
-          isa<FunctionTemplateDecl>((*Functions.begin())->getUnderlyingDecl()));
-}
-
 ExprResult Sema::CreateUnresolvedLookupExpr(CXXRecordDecl *NamingClass,
                                             NestedNameSpecifierLoc NNSLoc,
                                             DeclarationNameInfo DNI,

``````````

</details>


https://github.com/llvm/llvm-project/pull/89618


More information about the cfe-commits mailing list