summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_basic.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-21 16:24:57 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-22 00:47:01 +0000
commit55d1d0191ea8316df32858d8cc62fb7c620e8613 (patch)
treecafa0777ebfe8a5b2b7e8e589caf77e3249292f3 /core/fxcrt/fx_basic.h
parent52f69b39403b1ac0df0fdf45698e80e60c0f2def (diff)
downloadpdfium-55d1d0191ea8316df32858d8cc62fb7c620e8613.tar.xz
Remove CFX_FixedBufGrow
This Cl replaces the CFX_FixedBufGrow class with std::vector. Change-Id: I85c85b7a8de4794840b561e09841bb464cfa9dfe Reviewed-on: https://pdfium-review.googlesource.com/3138 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_basic.h')
-rw-r--r--core/fxcrt/fx_basic.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/fxcrt/fx_basic.h b/core/fxcrt/fx_basic.h
index 076766a0a2..2786918fd1 100644
--- a/core/fxcrt/fx_basic.h
+++ b/core/fxcrt/fx_basic.h
@@ -317,23 +317,6 @@ class CFX_ArrayTemplate : public CFX_BasicArray {
}
};
-template <class DataType, int FixedSize>
-class CFX_FixedBufGrow {
- public:
- explicit CFX_FixedBufGrow(int data_size) {
- if (data_size > FixedSize) {
- m_pGrowData.reset(FX_Alloc(DataType, data_size));
- return;
- }
- FXSYS_memset(m_FixedData, 0, sizeof(DataType) * FixedSize);
- }
- operator DataType*() { return m_pGrowData ? m_pGrowData.get() : m_FixedData; }
-
- private:
- DataType m_FixedData[FixedSize];
- std::unique_ptr<DataType, FxFreeDeleter> m_pGrowData;
-};
-
class CFX_BitStream {
public:
void Init(const uint8_t* pData, uint32_t dwSize);