From: Aaron Ballman Date: Fri, 14 Mar 2014 20:33:18 +0000 (+0000) Subject: Removing some unused functionality from AttributeList. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bf7eacf932cf4f0e2531eaff6c31cc5f39b659a;p=clang Removing some unused functionality from AttributeList. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203965 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/AttributeList.h b/include/clang/Sema/AttributeList.h index 6a326f2a4d..43e8d35fd4 100644 --- a/include/clang/Sema/AttributeList.h +++ b/include/clang/Sema/AttributeList.h @@ -389,44 +389,6 @@ public: return getArg(Arg).get(); } - class arg_iterator { - ArgsUnion const *X; - unsigned Idx; - public: - arg_iterator(ArgsUnion const *x, unsigned idx) : X(x), Idx(idx) {} - - arg_iterator& operator++() { - ++Idx; - return *this; - } - - bool operator==(const arg_iterator& I) const { - assert (X == I.X && - "compared arg_iterators are for different argument lists"); - return Idx == I.Idx; - } - - bool operator!=(const arg_iterator& I) const { - return !operator==(I); - } - - ArgsUnion operator*() const { - return X[Idx]; - } - - unsigned getArgNum() const { - return Idx+1; - } - }; - - arg_iterator arg_begin() const { - return arg_iterator(getArgsBuffer(), 0); - } - - arg_iterator arg_end() const { - return arg_iterator(getArgsBuffer(), NumArgs); - } - const AvailabilityChange &getAvailabilityIntroduced() const { assert(getKind() == AT_Availability && "Not an availability attribute"); return getAvailabilitySlot(IntroducedSlot);