]> granicus.if.org Git - clang/commitdiff
Remove redundant checks.
authorJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 27 Jan 2012 09:14:17 +0000 (09:14 +0000)
committerJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 27 Jan 2012 09:14:17 +0000 (09:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149125 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index bdf95fa5828b8501c103473e0891c84e4bb661e4..948aff93fad5bd7c077248ee358f1ededaa06625 100644 (file)
@@ -2251,8 +2251,7 @@ static FormatAttrKind getFormatAttrKind(StringRef Format) {
 
   // Otherwise, check for supported formats.
   if (Format == "scanf" || Format == "printf" || Format == "printf0" ||
-      Format == "strfmon" || Format == "cmn_err" || Format == "strftime" ||
-      Format == "NSString" || Format == "CFString" || Format == "vcmn_err" ||
+      Format == "strfmon" || Format == "cmn_err" || Format == "vcmn_err" ||
       Format == "zcmn_err" ||
       Format == "kprintf")  // OpenBSD.
     return SupportedFormat;