Index: core/fpdfapi/fpdf_font/cpdf_type3char.cpp |
diff --git a/core/fpdfapi/fpdf_font/cpdf_type3char.cpp b/core/fpdfapi/fpdf_font/cpdf_type3char.cpp |
deleted file mode 100644 |
index a11f319b780570a85baf518ecd7d87beab0f74da..0000000000000000000000000000000000000000 |
--- a/core/fpdfapi/fpdf_font/cpdf_type3char.cpp |
+++ /dev/null |
@@ -1,39 +0,0 @@ |
-// Copyright 2016 PDFium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
- |
-#include "core/fpdfapi/fpdf_font/cpdf_type3char.h" |
- |
-#include "core/fpdfapi/fpdf_page/cpdf_form.h" |
-#include "core/fpdfapi/fpdf_page/cpdf_image.h" |
-#include "core/fpdfapi/fpdf_page/cpdf_imageobject.h" |
-#include "core/fpdfapi/fpdf_page/cpdf_pageobject.h" |
-#include "core/fxge/fx_dib.h" |
- |
-CPDF_Type3Char::CPDF_Type3Char(CPDF_Form* pForm) |
- : m_pForm(pForm), m_bColored(FALSE) {} |
- |
-CPDF_Type3Char::~CPDF_Type3Char() { |
-} |
- |
-FX_BOOL CPDF_Type3Char::LoadBitmap(CPDF_RenderContext* pContext) { |
- if (m_pBitmap || !m_pForm) |
- return TRUE; |
- |
- if (m_pForm->GetPageObjectList()->size() != 1 || m_bColored) |
- return FALSE; |
- |
- auto& pPageObj = m_pForm->GetPageObjectList()->front(); |
- if (!pPageObj->IsImage()) |
- return FALSE; |
- |
- m_ImageMatrix = pPageObj->AsImage()->m_Matrix; |
- std::unique_ptr<CFX_DIBSource> pSource( |
- pPageObj->AsImage()->GetImage()->LoadDIBSource()); |
- if (pSource) |
- m_pBitmap.reset(pSource->Clone()); |
- m_pForm.reset(); |
- return TRUE; |
-} |