From f9e67832df93d5a8df6546144e38ced023212d37 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 6 Mar 2017 14:41:45 -0800 Subject: Remove CFX_StackTemplate now that all usage removed. Change-Id: I5682af84f29bcd123e294e57998f50abcdadc894 Reviewed-on: https://pdfium-review.googlesource.com/2932 Commit-Queue: dsinclair Reviewed-by: dsinclair --- xfa/fgas/crt/fgas_utils.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'xfa/fgas/crt/fgas_utils.cpp') diff --git a/xfa/fgas/crt/fgas_utils.cpp b/xfa/fgas/crt/fgas_utils.cpp index c09198f6e0..4f13d4872c 100644 --- a/xfa/fgas/crt/fgas_utils.cpp +++ b/xfa/fgas/crt/fgas_utils.cpp @@ -367,35 +367,3 @@ void CFX_BaseDiscreteArray::RemoveAll() { ChunkBuffer.RemoveAll(); iChunkCount = 0; } -CFX_BaseStack::CFX_BaseStack(int32_t iChunkSize, int32_t iBlockSize) { - m_pData = new CFX_BaseMassArrayImp(iChunkSize, iBlockSize); -} -CFX_BaseStack::~CFX_BaseStack() { - delete (CFX_BaseMassArrayImp*)m_pData; -} -uint8_t* CFX_BaseStack::Push() { - return m_pData->AddSpace(); -} -void CFX_BaseStack::Pop() { - int32_t& iBlockCount = m_pData->m_iBlockCount; - if (iBlockCount < 1) { - return; - } - iBlockCount--; -} -uint8_t* CFX_BaseStack::GetTopElement() const { - int32_t iSize = m_pData->m_iBlockCount; - if (iSize < 1) { - return nullptr; - } - return m_pData->GetAt(iSize - 1); -} -int32_t CFX_BaseStack::GetSize() const { - return m_pData->m_iBlockCount; -} -uint8_t* CFX_BaseStack::GetAt(int32_t index) const { - return m_pData->GetAt(index); -} -void CFX_BaseStack::RemoveAll(bool bLeaveMemory) { - m_pData->RemoveAll(bLeaveMemory); -} -- cgit v1.2.3