From fe62b0666560adf1e6b35b443eb1a72e006fad2c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 14 Jan 2011 22:31:36 +0000 Subject: [PATCH] The variable 'isTemplateSpecialization' is no longer used; nuke all assignments and its declaration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123483 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaTemplate.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 6a37482d66..03cb25e903 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -3929,14 +3929,11 @@ static bool CheckTemplateSpecializationScope(Sema &S, // Keep these "kind" numbers in sync with the %select statements in the // various diagnostics emitted by this routine. int EntityKind = 0; - bool isTemplateSpecialization = false; - if (isa(Specialized)) { + if (isa(Specialized)) EntityKind = IsPartialSpecialization? 1 : 0; - isTemplateSpecialization = true; - } else if (isa(Specialized)) { + else if (isa(Specialized)) EntityKind = 2; - isTemplateSpecialization = true; - } else if (isa(Specialized)) + else if (isa(Specialized)) EntityKind = 3; else if (isa(Specialized)) EntityKind = 4; -- 2.40.0