diff options
Diffstat (limited to 'core/fpdfapi/page/cpdf_shadingobject.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_shadingobject.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/core/fpdfapi/page/cpdf_shadingobject.cpp b/core/fpdfapi/page/cpdf_shadingobject.cpp index 84b6aa7cd5..928b0af47e 100644 --- a/core/fpdfapi/page/cpdf_shadingobject.cpp +++ b/core/fpdfapi/page/cpdf_shadingobject.cpp @@ -14,22 +14,6 @@ CPDF_ShadingObject::CPDF_ShadingObject() : m_pShading(nullptr) {} CPDF_ShadingObject::~CPDF_ShadingObject() {} -CPDF_ShadingObject* CPDF_ShadingObject::Clone() const { - CPDF_ShadingObject* obj = new CPDF_ShadingObject; - obj->CopyData(this); - - obj->m_pShading = m_pShading; - if (obj->m_pShading && obj->m_pShading->document()) { - CPDF_DocPageData* pDocPageData = obj->m_pShading->document()->GetPageData(); - CPDF_Pattern* pattern = pDocPageData->GetPattern( - obj->m_pShading->GetShadingObject(), m_pShading->IsShadingObject(), - obj->m_pShading->parent_matrix()); - obj->m_pShading = pattern ? pattern->AsShadingPattern() : nullptr; - } - obj->m_Matrix = m_Matrix; - return obj; -} - CPDF_PageObject::Type CPDF_ShadingObject::GetType() const { return SHADING; } |