diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-22 15:10:28 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-22 15:10:28 -0700 |
commit | f55771af6429ecf14beed1cae5ec2340ef7f37ad (patch) | |
tree | 96f83002cb0e831e5091920925998bcc9fcea55d /fpdfsdk/include/javascript/Document.h | |
parent | f2d3911ce1a07812d75e7671e038d0922a823528 (diff) | |
download | pdfium-f55771af6429ecf14beed1cae5ec2340ef7f37ad.tar.xz |
Delete dead code for deleting pages and icons.
1) Document::deletePages()
2) CPDFSDK_Document::DeletePages()
3) Document::removeIcon()
4) IconTree::DeleteIconElement()
Originally (1) called (2), but only when FOXIT_CHROME_BUILD was not
defined. Since it was always defined for PDFium, this was effectively
dead code the whole time. Ditto for (3) and (4). The functions were
deemed unsafe in https://crbug.com/67100
R=jam@chromium.org
Review URL: https://codereview.chromium.org/1193323002.
Diffstat (limited to 'fpdfsdk/include/javascript/Document.h')
-rw-r--r-- | fpdfsdk/include/javascript/Document.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fpdfsdk/include/javascript/Document.h b/fpdfsdk/include/javascript/Document.h index b3725e77af..6b40069706 100644 --- a/fpdfsdk/include/javascript/Document.h +++ b/fpdfsdk/include/javascript/Document.h @@ -64,7 +64,6 @@ public: public: void InsertIconElement(IconElement* pNewIcon); - void DeleteIconElement(CFX_WideString swIconName); void DeleteIconTree(); int GetLength(); IconElement* operator[](int iIndex); |