From: Ted Kremenek Date: Fri, 14 Jan 2011 22:31:36 +0000 (+0000) Subject: The variable 'isTemplateSpecialization' is no longer X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe62b0666560adf1e6b35b443eb1a72e006fad2c;p=clang 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 --- 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;