diff options
author | Robert Phillips <robertphillips@google.com> | 2017-07-21 12:15:05 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-21 12:15:14 +0000 |
commit | 39f1a9589bf4e0818aaeaa9c2fc4ecbe1e2ec23e (patch) | |
tree | 6bdef7dba2a0a741ce767274554c54327d7ca0e1 /src/core/SkTMultiMap.h | |
parent | 650ced07d9660e74eb34ddff79293583f7b70837 (diff) |
Revert "Add initial version of GrResourceAllocator's free pool"
This reverts commit 6ec9a4ffe43910551d15ddc95150472aabbc8b74.
Reason for revert: Maybe breaking iOS bots
Original change's description:
> Add initial version of GrResourceAllocator's free pool
>
> Change-Id: Ibd60303ffb1d3ea814dad0cee3a521f94da63ca8
> Reviewed-on: https://skia-review.googlesource.com/24262
> Reviewed-by: Brian Salomon <bsalomon@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>
TBR=bsalomon@google.com,robertphillips@google.com
Change-Id: I0195f64503a6f2f7b416f75b57fb9141e5b9f796
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/25540
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkTMultiMap.h')
-rw-r--r-- | src/core/SkTMultiMap.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/SkTMultiMap.h b/src/core/SkTMultiMap.h index 3d6e38e454..dc521debc9 100644 --- a/src/core/SkTMultiMap.h +++ b/src/core/SkTMultiMap.h @@ -30,14 +30,8 @@ public: SkTMultiMap() : fCount(0) {} ~SkTMultiMap() { - typename SkTDynamicHash<ValueList, Key>::Iter iter(&fHash); - for ( ; !iter.done(); ++iter) { - ValueList* next; - for (ValueList* cur = &(*iter); cur; cur = next) { - next = cur->fNext; - delete cur; - } - } + SkASSERT(fCount == 0); + SkASSERT(fHash.count() == 0); } void insert(const Key& key, T* value) { |