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

Unified Diff: core/include/fxcrt/fx_memory.h

Issue 1757043002: Remove unused CFX_GrowOnlyPool. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 10 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 | core/src/fxcrt/fx_basic_memmgr.cpp » ('j') | core/src/fxcrt/fx_basic_memmgr_unittest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/include/fxcrt/fx_memory.h
diff --git a/core/include/fxcrt/fx_memory.h b/core/include/fxcrt/fx_memory.h
index b9b1888930a0df6c1f8d98ad22a4cf8b9a38d973..7866c90cfaac53f804be9ab354dba7d4a3c5a146 100644
--- a/core/include/fxcrt/fx_memory.h
+++ b/core/include/fxcrt/fx_memory.h
@@ -69,44 +69,13 @@ inline void* FX_ReallocOrDie(void* ptr,
// May return NULL.
#define FX_TryAlloc(type, size) (type*) calloc(size, sizeof(type))
-#define FX_TryRealloc(type, ptr, size) \
Tom Sepez 2016/03/02 20:28:07 Hate to say this, but I might be willing to keep t
dsinclair 2016/03/02 20:55:36 Done.
- (type*) FX_SafeRealloc(ptr, size, sizeof(type))
-
#define FX_Free(ptr) free(ptr)
class CFX_DestructObject {
public:
virtual ~CFX_DestructObject() {}
};
-class CFX_GrowOnlyPool {
- public:
- CFX_GrowOnlyPool(size_t trunk_size = 16384);
-
- ~CFX_GrowOnlyPool();
-
- void SetTrunkSize(size_t trunk_size) { m_TrunkSize = trunk_size; }
-
- void* AllocDebug(size_t size, const FX_CHAR* file, int line) {
- return Alloc(size);
- }
-
- void* Alloc(size_t size);
- void* ReallocDebug(void* p, size_t new_size, const FX_CHAR* file, int line) {
- return NULL;
- }
-
- void* Realloc(void* p, size_t new_size) { return NULL; }
-
- void Free(void* mem) {}
-
- void FreeAll();
-
- private:
- size_t m_TrunkSize;
-
- void* m_pFirstTrunk;
-};
#endif // __cplusplus
#endif // CORE_INCLUDE_FXCRT_FX_MEMORY_H_
« no previous file with comments | « no previous file | core/src/fxcrt/fx_basic_memmgr.cpp » ('j') | core/src/fxcrt/fx_basic_memmgr_unittest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698