]> granicus.if.org Git - clang/commitdiff
Remove dead code identified by Aaron Ballman.
authorTed Kremenek <kremenek@apple.com>
Thu, 19 Dec 2013 22:23:12 +0000 (22:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 19 Dec 2013 22:23:12 +0000 (22:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197730 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 73d67eb6fff86511b071fefe14e0aefe982515a7..0532dac34a7e336732cb9bab7f63b96f8e6264ef 100644 (file)
@@ -4545,15 +4545,11 @@ DoEmitAvailabilityWarning(Sema &S,
   DeclarationName Name = D->getDeclName();
   if (!Message.empty()) {
     S.Diag(Loc, diag_message) << Name << Message;
-//    S.Diag(D->getLocation(), diag::note_availability_specified_here)
-//      << D << available_here_select_kind;
     if (ObjCProperty)
       S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute)
         << ObjCProperty->getDeclName() << property_note_select;
   } else if (!UnknownObjCClass) {
     S.Diag(Loc, diag) << Name;
-//    S.Diag(D->getLocation(), diag::note_availability_specified_here)
-//      << D << available_here_select_kind;
     if (ObjCProperty)
       S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute)
         << ObjCProperty->getDeclName() << property_note_select;