From: Aaron Ballman Date: Tue, 1 Dec 2015 17:15:13 +0000 (+0000) Subject: It appears that this horrible mutating copy constructor is unused. Kill it with fire. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d9cbd7a17d4662131e65752f87a3abdd5cf89a1;p=clang It appears that this horrible mutating copy constructor is unused. Kill it with fire. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254423 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/AttributeList.h b/include/clang/Sema/AttributeList.h index 8be55472b9..7a84b20af2 100644 --- a/include/clang/Sema/AttributeList.h +++ b/include/clang/Sema/AttributeList.h @@ -557,11 +557,6 @@ public: /// Create a new pool for a factory. AttributePool(AttributeFactory &factory) : Factory(factory), Head(nullptr) {} - /// Move the given pool's allocations to this pool. - AttributePool(AttributePool &pool) : Factory(pool.Factory), Head(pool.Head) { - pool.Head = nullptr; - } - AttributeFactory &getFactory() const { return Factory; } void clear() {