From 22f34c7f34ad19f374284e60a3793edf9acef9da Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 27 Dec 2019 17:27:20 -0800 Subject: [PATCH] lld: Remove explicit copy ops from AssociatedIterator, relying on implicit operators --- lld/COFF/Chunks.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lld/COFF/Chunks.h b/lld/COFF/Chunks.h index 6aed040069df..9ccc194c151a 100644 --- a/lld/COFF/Chunks.h +++ b/lld/COFF/Chunks.h @@ -267,12 +267,7 @@ public: AssociatedIterator, std::forward_iterator_tag, SectionChunk> { public: AssociatedIterator() = default; - AssociatedIterator(const AssociatedIterator&) = default; AssociatedIterator(SectionChunk *head) : cur(head) {} - AssociatedIterator &operator=(const AssociatedIterator &r) { - cur = r.cur; - return *this; - } bool operator==(const AssociatedIterator &r) const { return cur == r.cur; } const SectionChunk &operator*() const { return *cur; } SectionChunk &operator*() { return *cur; }