diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-11 13:12:47 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-11 13:12:47 +0000 |
commit | 5b857694cb5dcd87f06cebf1881bbf7e8c6f6306 (patch) | |
tree | 70089c3c5ed192fe495bb593945244d04de2257a /base/linked_list.h | |
parent | e9bb52e1f3597055e62d7c9eda2ef7e2dcd67a40 (diff) | |
download | chromium_src-5b857694cb5dcd87f06cebf1881bbf7e8c6f6306.zip chromium_src-5b857694cb5dcd87f06cebf1881bbf7e8c6f6306.tar.gz chromium_src-5b857694cb5dcd87f06cebf1881bbf7e8c6f6306.tar.bz2 |
clang: Remove an ancient workaround.
This was added 2 years ago when Evan added the initial clang support
(http://codereview.chromium.org/522020). It's no longer needed.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/10933014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/linked_list.h')
-rw-r--r-- | base/linked_list.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/base/linked_list.h b/base/linked_list.h index 70e9056..5b5184f 100644 --- a/base/linked_list.h +++ b/base/linked_list.h @@ -125,13 +125,6 @@ class LinkNode { return static_cast<T*>(this); } - // Work around a Clang bug reported upstream: - // http://llvm.org/bugs/show_bug.cgi?id=7974 - // TODO(evanm): remove this and its sole caller. - void set(LinkNode<T>* prev, LinkNode<T>* next) { - previous_ = prev; next_ = next; - } - private: LinkNode<T>* previous_; LinkNode<T>* next_; @@ -143,7 +136,7 @@ class LinkedList { // The "root" node is self-referential, and forms the basis of a circular // list (root_.next() will point back to the start of the list, // and root_->previous() wraps around to the end of the list). - LinkedList() { root_.set(&root_, &root_); } + LinkedList() : root_(&root_, &root_) {} // Appends |e| to the end of the linked list. void Append(LinkNode<T>* e) { |