From acc71aa5c2e9349d9501d1b2a6cb6a33325cd73c Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 3 Dec 2012 19:18:57 +0000 Subject: Revert 6649 due to build breaks. git-svn-id: http://skia.googlecode.com/svn/trunk@6651 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkTInternalLList.h | 72 ----------------------------------------- 1 file changed, 72 deletions(-) (limited to 'include') diff --git a/include/core/SkTInternalLList.h b/include/core/SkTInternalLList.h index 78c82bab7e..32245b51eb 100644 --- a/include/core/SkTInternalLList.h +++ b/include/core/SkTInternalLList.h @@ -109,64 +109,6 @@ public: #endif } - /** - * Inserts a new list entry before an existing list entry. The new entry must not already be - * a member of this or any other list. If existingEntry is NULL then the new entry is added - * at the tail. - */ - void addBefore(T* newEntry, T* existingEntry) { - SkASSERT(NULL != newEntry); - - if (NULL == existingEntry) { - this->addToTail(newEntry); - return; - } - - SkASSERT(this->isInList(existingEntry)); - newEntry->fNext = existingEntry; - T* prev = existingEntry->fPrev; - existingEntry->fPrev = newEntry; - newEntry->fPrev = prev; - if (NULL == prev) { - SkASSERT(fHead == existingEntry); - fHead = newEntry; - } else { - prev->fNext = newEntry; - } -#if SK_DEBUG - newEntry->fList = this; -#endif - } - - /** - * Inserts a new list entry after an existing list entry. The new entry must not already be - * a member of this or any other list. If existingEntry is NULL then the new entry is added - * at the head. - */ - void addAfter(T* newEntry, T* existingEntry) { - SkASSERT(NULL != newEntry); - - if (NULL == existingEntry) { - this->addToHead(newEntry); - return; - } - - SkASSERT(this->isInList(existingEntry)); - newEntry->fPrev = existingEntry; - T* next = existingEntry->fNext; - existingEntry->fNext = newEntry; - newEntry->fNext = next; - if (NULL == next) { - SkASSERT(fTail == existingEntry); - fTail = newEntry; - } else { - next->fPrev = newEntry; - } -#if SK_DEBUG - newEntry->fList = this; -#endif - } - bool isEmpty() const { return NULL == fHead && NULL == fTail; } @@ -226,20 +168,6 @@ public: #ifdef SK_DEBUG void validate() const { SkASSERT(!fHead == !fTail); - Iter iter; - for (T* item = iter.init(*this, Iter::kHead_IterStart); NULL != (item = iter.next()); ) { - SkASSERT(this->isInList(item)); - if (NULL == item->fPrev) { - SkASSERT(fHead == item); - } else { - SkASSERT(item->fPrev->fNext == item); - } - if (NULL == item->fNext) { - SkASSERT(fTail == item); - } else { - SkASSERT(item->fNext->fPrev == item); - } - } } /** -- cgit v1.2.3