summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2017-01-09 06:54:27 -0800
committerCommit bot <commit-bot@chromium.org>2017-01-09 06:54:27 -0800
commit5037839bb0b91792b81a3e455dead1314fcc7a6d (patch)
treef34f8e39155290f4c69e7a7b4eff5252f93a86ac /core
parent591ed144f8dfe4b2915f01f1cc725f584d498a3f (diff)
downloadpdfium-5037839bb0b91792b81a3e455dead1314fcc7a6d.tar.xz
Tidy cfgas_fontmgr, remove custom sorting code.
Review-Url: https://codereview.chromium.org/2610813010
Diffstat (limited to 'core')
-rw-r--r--core/fxcrt/fx_ext.h23
1 files changed, 0 insertions, 23 deletions
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 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_