diff options
author | Lei Zhang <thestig@chromium.org> | 2017-12-19 19:00:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-19 19:00:43 +0000 |
commit | 58c2c144c5ac6a7397573d2f25d1ba9c79bc4f15 (patch) | |
tree | 438cd4c32e367e1433d5e5f01896984d564f67c2 /core/fxcrt/cfx_binarybuf.cpp | |
parent | 9ccf08746e57a03fd9afc187cb3e23404cdc88bb (diff) | |
download | pdfium-58c2c144c5ac6a7397573d2f25d1ba9c79bc4f15.tar.xz |
Remove some dead code.
Change-Id: I8edb14c024860c66b5e6c014136393e71e38387d
Reviewed-on: https://pdfium-review.googlesource.com/21570
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_binarybuf.cpp')
-rw-r--r-- | core/fxcrt/cfx_binarybuf.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/fxcrt/cfx_binarybuf.cpp b/core/fxcrt/cfx_binarybuf.cpp index 3673fa58d4..1243593a77 100644 --- a/core/fxcrt/cfx_binarybuf.cpp +++ b/core/fxcrt/cfx_binarybuf.cpp @@ -12,11 +12,6 @@ CFX_BinaryBuf::CFX_BinaryBuf() : m_AllocStep(0), m_AllocSize(0), m_DataSize(0) {} -CFX_BinaryBuf::CFX_BinaryBuf(size_t size) - : m_AllocStep(0), m_AllocSize(size), m_DataSize(size) { - m_pBuffer.reset(FX_Alloc(uint8_t, size)); -} - CFX_BinaryBuf::~CFX_BinaryBuf() {} void CFX_BinaryBuf::Delete(size_t start_index, size_t count) { @@ -77,18 +72,3 @@ void CFX_BinaryBuf::AppendBlock(const void* pBuf, size_t size) { } m_DataSize += size; } - -void CFX_BinaryBuf::InsertBlock(size_t pos, const void* pBuf, size_t size) { - if (size <= 0) - return; - - ExpandBuf(size); - memmove(m_pBuffer.get() + pos + size, m_pBuffer.get() + pos, - m_DataSize - pos); - if (pBuf) { - memcpy(m_pBuffer.get() + pos, pBuf, size); - } else { - memset(m_pBuffer.get() + pos, 0, size); - } - m_DataSize += size; -} |