From 45856be7b6658aaf7fe943d9e0f285811e98b6a7 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 5 Jan 2016 17:01:49 -0800 Subject: Merge to XFA: Replace CPDF_SortObjNumArray with a std::set. R=tsepez@chromium.org TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1566553002 . (cherry picked from commit 6caae4d3c6815c5a1e12340734412a3bc7548652) Review URL: https://codereview.chromium.org/1561853002 . --- core/include/fpdfapi/fpdf_parser.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'core/include') diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index bcb35b0ad6..1b1b022fc6 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -915,20 +915,7 @@ class IPDF_DataAvail { IFX_FileAvail* m_pFileAvail; IFX_FileRead* m_pFileRead; }; -class CPDF_SortObjNumArray { - public: - void AddObjNum(FX_DWORD dwObjNum); - - FX_BOOL Find(FX_DWORD dwObjNum); - void RemoveAll() { m_number_array.RemoveAll(); } - - protected: - FX_BOOL BinarySearch(FX_DWORD value, int& iNext); - - protected: - CFX_DWordArray m_number_array; -}; enum PDF_PAGENODE_TYPE { PDF_PAGENODE_UNKOWN = 0, PDF_PAGENODE_PAGE, -- cgit v1.2.3