summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_memory.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-03 22:18:18 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-03 22:18:18 +0000
commitb810da2788d0aca491bee55b0f9d97b48e682bbf (patch)
tree5bc3c77f1fc0945b6db71c62f9f347ff3dc1e398 /core/fxcrt/fx_memory.cpp
parent882a190807b6f791e3b3f1a692c59fb93d746f94 (diff)
downloadpdfium-b810da2788d0aca491bee55b0f9d97b48e682bbf.tar.xz
Remove flags param from FXMEM_DefaultAlloc() and friends.
Change-Id: I24404be0065156a1cfdec31bafdf72c27fa70142 Reviewed-on: https://pdfium-review.googlesource.com/17792 Reviewed-by: Chris Palmer <palmer@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_memory.cpp')
-rw-r--r--core/fxcrt/fx_memory.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/fxcrt/fx_memory.cpp b/core/fxcrt/fx_memory.cpp
index 6a592a12d2..6a135ae0f8 100644
--- a/core/fxcrt/fx_memory.cpp
+++ b/core/fxcrt/fx_memory.cpp
@@ -24,8 +24,7 @@ void FXMEM_InitializePartitionAlloc() {
}
}
-// TODO(palmer): Remove the |flags| argument.
-void* FXMEM_DefaultAlloc(size_t byte_size, int flags) {
+void* FXMEM_DefaultAlloc(size_t byte_size) {
return pdfium::base::PartitionAllocGenericFlags(
gGeneralPartitionAllocator.root(), pdfium::base::PartitionAllocReturnNull,
byte_size, "GeneralPartition");
@@ -35,14 +34,12 @@ void* FXMEM_DefaultCalloc(size_t num_elems, size_t byte_size) {
return FX_SafeAlloc(num_elems, byte_size);
}
-// TODO(palmer): Remove the |flags| argument.
-void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags) {
+void* FXMEM_DefaultRealloc(void* pointer, size_t new_size) {
return pdfium::base::PartitionReallocGeneric(
gGeneralPartitionAllocator.root(), pointer, new_size, "GeneralPartition");
}
-// TODO(palmer): Remove the |flags| argument.
-void FXMEM_DefaultFree(void* pointer, int flags) {
+void FXMEM_DefaultFree(void* pointer) {
pdfium::base::PartitionFree(pointer);
}