Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: src/core/SkTSort.h

Issue 15070011: One SkTSearch to rule them all. Allow key to be of different type than the array. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fixes to compile on gcc Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPtrRecorder.cpp ('k') | src/gpu/effects/GrTextureStripAtlas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTSort.h
diff --git a/src/core/SkTSort.h b/src/core/SkTSort.h
index a5865a289238194b23e983deaa72e8725276f5a9..027ea52a5eed2fc91899e9f671555a69351f498b 100644
--- a/src/core/SkTSort.h
+++ b/src/core/SkTSort.h
@@ -207,14 +207,4 @@ template <typename T> void SkTQSort(T** left, T** right) {
SkTQSort(left, right, SkTPointerCompareLT<T>());
}
-/** Adapts a tri-state SkTSearch comparison function to a bool less-than SkTSort functor */
-template <typename T, int (COMPARE)(const T*, const T*)>
-class SkTSearchCompareLTFunctor {
-public:
- bool operator()(const T& a, const T& b) {
- return COMPARE(&a, &b) < 0;
- }
-};
-
-
#endif
« no previous file with comments | « src/core/SkPtrRecorder.cpp ('k') | src/gpu/effects/GrTextureStripAtlas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698