summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Icon.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-02-23 13:07:36 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-23 22:29:03 +0000
commit40e0a819100b6b2cf63070c1a91393cf42820c69 (patch)
tree6d5bfd7359378fcacacc51f28ee1d0f8bd6d6804 /fpdfsdk/javascript/Icon.cpp
parent90b7326a13555795d7292268e83ae4933fd038f5 (diff)
downloadpdfium-40e0a819100b6b2cf63070c1a91393cf42820c69.tar.xz
Remove unused Icon::m_pIconStreamchromium/3022
It is set, and passed around, but never operated upon. This removes another unowned ptr from JS back to C++ objects. Change-Id: I2a7eede050c6d844924e3c74395e7672ebb0213e Reviewed-on: https://pdfium-review.googlesource.com/2829 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/Icon.cpp')
-rw-r--r--fpdfsdk/javascript/Icon.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/fpdfsdk/javascript/Icon.cpp b/fpdfsdk/javascript/Icon.cpp
index 72d91faa76..fa2f92f3c9 100644
--- a/fpdfsdk/javascript/Icon.cpp
+++ b/fpdfsdk/javascript/Icon.cpp
@@ -21,27 +21,10 @@ JSMethodSpec CJS_Icon::MethodSpecs[] = {{0, 0}};
IMPLEMENT_JS_CLASS(CJS_Icon, Icon)
Icon::Icon(CJS_Object* pJSObject)
- : CJS_EmbedObj(pJSObject), m_pIconStream(nullptr), m_swIconName(L"") {}
+ : CJS_EmbedObj(pJSObject), m_swIconName(L"") {}
Icon::~Icon() {}
-void Icon::SetStream(CPDF_Stream* pIconStream) {
- if (pIconStream)
- m_pIconStream = pIconStream;
-}
-
-CPDF_Stream* Icon::GetStream() {
- return m_pIconStream;
-}
-
-void Icon::SetIconName(CFX_WideString name) {
- m_swIconName = name;
-}
-
-CFX_WideString Icon::GetIconName() {
- return m_swIconName;
-}
-
bool Icon::name(CJS_Runtime* pRuntime,
CJS_PropValue& vp,
CFX_WideString& sError) {