summaryrefslogtreecommitdiff
path: root/core/fxcrt
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-12-14 20:10:37 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-14 20:10:37 -0800
commit72a22025ec4402178cd0b27239bf77cf3a953949 (patch)
treeb9b8a7c42dbe020b08cf44df0902b4e53a8e2ece /core/fxcrt
parent37b12ad873198a9644f3de0d2eff001285e1ad42 (diff)
downloadpdfium-72a22025ec4402178cd0b27239bf77cf3a953949.tar.xz
Remove unused m_OtfFontData.chromium/2953
In turn, this makes CFX_BinaryBuf::AttachData() unused. Review-Url: https://codereview.chromium.org/2578793002
Diffstat (limited to 'core/fxcrt')
-rw-r--r--core/fxcrt/fx_basic.h3
-rw-r--r--core/fxcrt/fx_basic_buffer.cpp6
2 files changed, 0 insertions, 9 deletions
diff --git a/core/fxcrt/fx_basic.h b/core/fxcrt/fx_basic.h
index 1bc4bbd588..e974e3061c 100644
--- a/core/fxcrt/fx_basic.h
+++ b/core/fxcrt/fx_basic.h
@@ -40,9 +40,6 @@ class CFX_BinaryBuf {
void InsertBlock(FX_STRSIZE pos, const void* pBuf, FX_STRSIZE size);
void Delete(int start_index, int count);
- // Takes ownership of |pBuf|.
- void AttachData(uint8_t* pBuf, FX_STRSIZE size);
-
// Releases ownership of |m_pBuffer| and returns it.
uint8_t* DetachBuffer();
diff --git a/core/fxcrt/fx_basic_buffer.cpp b/core/fxcrt/fx_basic_buffer.cpp
index e6d05528ae..fcd156b079 100644
--- a/core/fxcrt/fx_basic_buffer.cpp
+++ b/core/fxcrt/fx_basic_buffer.cpp
@@ -42,12 +42,6 @@ uint8_t* CFX_BinaryBuf::DetachBuffer() {
return m_pBuffer.release();
}
-void CFX_BinaryBuf::AttachData(uint8_t* buffer, FX_STRSIZE size) {
- m_pBuffer.reset(buffer);
- m_DataSize = size;
- m_AllocSize = size;
-}
-
void CFX_BinaryBuf::EstimateSize(FX_STRSIZE size, FX_STRSIZE step) {
m_AllocStep = step;
if (m_AllocSize < size)