aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-03 19:18:57 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-12-03 19:18:57 +0000
commitacc71aa5c2e9349d9501d1b2a6cb6a33325cd73c (patch)
tree4edbb3250a0b9bcbb8ce84f5844678251f6a4c11 /include
parent1878a4ec0ffcef637efb7f066487d9328db8474a (diff)
Revert 6649 due to build breaks.
git-svn-id: http://skia.googlecode.com/svn/trunk@6651 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkTInternalLList.h72
1 files changed, 0 insertions, 72 deletions
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);
- }
- }
}
/**