summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpvt_arraytemplate.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-03-20 16:06:15 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-21 17:48:55 +0000
commit32b94557c605f02fa969bc84b3c9b6f5277c258e (patch)
treeb65104b4702085f3b37f1a89b07a0456600d0750 /core/fpdfdoc/cpvt_arraytemplate.h
parent9c045de6cf02f7dbd0634af566396ba9352b2830 (diff)
downloadpdfium-32b94557c605f02fa969bc84b3c9b6f5277c258e.tar.xz
Replace CPVT_ArrayTemplate in cpdf_variabletext.cpp and remove it.chromium/3048
Change-Id: I4354a841d6e2d4f30ccb298d13dffa49b9f3a3b3 Reviewed-on: https://pdfium-review.googlesource.com/3131 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpvt_arraytemplate.h')
-rw-r--r--core/fpdfdoc/cpvt_arraytemplate.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/core/fpdfdoc/cpvt_arraytemplate.h b/core/fpdfdoc/cpvt_arraytemplate.h
deleted file mode 100644
index 5274bd9ba4..0000000000
--- a/core/fpdfdoc/cpvt_arraytemplate.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef CORE_FPDFDOC_CPVT_ARRAYTEMPLATE_H_
-#define CORE_FPDFDOC_CPVT_ARRAYTEMPLATE_H_
-
-#include "core/fxcrt/fx_basic.h"
-#include "core/fxcrt/fx_system.h"
-
-template <class TYPE>
-class CPVT_ArrayTemplate : public CFX_ArrayTemplate<TYPE> {
- public:
- bool IsEmpty() { return CFX_ArrayTemplate<TYPE>::GetSize() <= 0; }
-
- TYPE GetAt(int nIndex) const {
- if (nIndex >= 0 && nIndex < CFX_ArrayTemplate<TYPE>::GetSize())
- return CFX_ArrayTemplate<TYPE>::GetAt(nIndex);
- return nullptr;
- }
-
- void RemoveAt(int nIndex) {
- if (nIndex >= 0 && nIndex < CFX_ArrayTemplate<TYPE>::GetSize())
- CFX_ArrayTemplate<TYPE>::RemoveAt(nIndex);
- }
-};
-
-#endif // CORE_FPDFDOC_CPVT_ARRAYTEMPLATE_H_