From 6527201414cf9479639594a7a1f80558ec09d106 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Fri, 18 Nov 2022 15:05:56 +0100 Subject: [PATCH] [clang-tidy] Remove a duplicated if-branch in the unused-using-decl check, NFC --- clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp b/clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp index 02aa786..244cf71 100644 --- a/clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp @@ -107,9 +107,6 @@ void UnusedUsingDeclsCheck::check(const MatchFinder::MatchResult &Result) { } else if (const auto *Specialization = dyn_cast(Used)) { removeFromFoundDecls(Specialization->getSpecializedTemplate()); - } else if (const auto *FD = dyn_cast(Used)) { - if (const auto *FDT = FD->getPrimaryTemplate()) - removeFromFoundDecls(FDT); } else if (const auto *ECD = dyn_cast(Used)) { if (const auto *ET = ECD->getType()->getAs()) removeFromFoundDecls(ET->getDecl()); -- 2.7.4