From 40e0a819100b6b2cf63070c1a91393cf42820c69 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 23 Feb 2017 13:07:36 -0800 Subject: Remove unused Icon::m_pIconStream 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 Reviewed-by: dsinclair --- fpdfsdk/javascript/Document.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'fpdfsdk/javascript/Document.cpp') 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; } -- cgit v1.2.3