From 7f1f3f6e323af8e415c5b671917c0e2ff7da0297 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. llvm-svn: 123483 --- clang/lib/Sema/SemaTemplate.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp index 6a37482d66a3..03cb25e9032b 100644 --- a/clang/lib/Sema/SemaTemplate.cpp +++ b/clang/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;