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

Unified Diff: core/fxcrt/fx_ext.h

Issue 2610813010: Tidy cfgas_fontmgr, remove custom sorting code. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | xfa/fgas/font/cfgas_fontmgr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcrt/fx_ext.h
diff --git a/core/fxcrt/fx_ext.h b/core/fxcrt/fx_ext.h
index 737ea849c9cb462a1d9855c5aa0a2cbf7b28b830..20580760c698546ab106b70f4d56f1fdc467b82f 100644
--- a/core/fxcrt/fx_ext.h
+++ b/core/fxcrt/fx_ext.h
@@ -99,27 +99,4 @@ void FX_GUID_ToString(FX_LPCGUID pGUID,
bool bSeparator = true);
#endif // PDF_ENABLE_XFA
-template <class baseType>
-class CFX_SSortTemplate {
- public:
- void ShellSort(baseType* pArray, int32_t iCount) {
- ASSERT(pArray && iCount > 0);
- int32_t i, j, gap;
- baseType v1, v2;
- gap = iCount >> 1;
- while (gap > 0) {
- for (i = gap; i < iCount; i++) {
- j = i - gap;
- v1 = pArray[i];
- while (j > -1 && (v2 = pArray[j]) > v1) {
- pArray[j + gap] = v2;
- j -= gap;
- }
- pArray[j + gap] = v1;
- }
- gap >>= 1;
- }
- }
-};
-
#endif // CORE_FXCRT_FX_EXT_H_
« no previous file with comments | « no previous file | xfa/fgas/font/cfgas_fontmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698