From 5037839bb0b91792b81a3e455dead1314fcc7a6d Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 9 Jan 2017 06:54:27 -0800 Subject: Tidy cfgas_fontmgr, remove custom sorting code. Review-Url: https://codereview.chromium.org/2610813010 --- core/fxcrt/fx_ext.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'core') diff --git a/core/fxcrt/fx_ext.h b/core/fxcrt/fx_ext.h index 737ea849c9..20580760c6 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 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_ -- cgit v1.2.3