summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Document.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/Document.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/Document.cpp')
-rw-r--r--fpdfsdk/javascript/Document.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp
index fbcd53f35a..536d654463 100644
--- a/fpdfsdk/javascript/Document.cpp
+++ b/fpdfsdk/javascript/Document.cpp
@@ -1265,7 +1265,6 @@ bool Document::icons(CJS_Runtime* pRuntime,
if (!pIcon)
return false;
- pIcon->SetStream(pIconElement->IconStream->GetStream());
pIcon->SetIconName(pIconElement->IconName);
Icons.SetElement(pRuntime, i++, CJS_Value(pRuntime, pJS_Icon));
}
@@ -1306,8 +1305,6 @@ bool Document::getIcon(CJS_Runtime* pRuntime,
return false;
pIcon->SetIconName(swIconName);
- pIcon->SetStream(pIconElement->IconStream->GetStream());
-
vRet = CJS_Value(pRuntime, pJS_Icon);
return true;
}