summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_page.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_page.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_page.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/core/fpdfapi/page/cpdf_page.cpp b/core/fpdfapi/page/cpdf_page.cpp
index 6518d80aa3..e5d7f381a5 100644
--- a/core/fpdfapi/page/cpdf_page.cpp
+++ b/core/fpdfapi/page/cpdf_page.cpp
@@ -186,20 +186,6 @@ int CPDF_Page::GetPageRotation() const {
return (rotate < 0) ? (rotate + 4) : rotate;
}
-bool CPDF_Page::RemoveObject(CPDF_PageObject* pPageObj) {
- pdfium::FakeUniquePtr<CPDF_PageObject> p(pPageObj);
-
- auto* pPageObjectList = GetPageObjectList();
- auto it =
- std::find(std::begin(*pPageObjectList), std::end(*pPageObjectList), p);
- if (it == std::end(*pPageObjectList))
- return false;
-
- it->release();
- pPageObjectList->erase(it);
- return true;
-}
-
bool GraphicsData::operator<(const GraphicsData& other) const {
if (fillAlpha != other.fillAlpha)
return fillAlpha < other.fillAlpha;