vcl/inc/fontsubset.hxx               |    1 -
 vcl/source/fontsubset/fontsubset.cxx |   10 ----------
 2 files changed, 11 deletions(-)

New commits:
commit 05b7e6039da5fda18205798d00e335b2c8126872
Author:     Khaled Hosny <kha...@aliftype.com>
AuthorDate: Mon Dec 5 17:58:58 2022 +0200
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Mon Dec 5 21:12:48 2022 +0000

    Drop dummy function
    
    Type 1 support is long and this was always dead code anyway.
    
    Change-Id: Ia00626e7d44419af333feb59d4dc52e624ffd263
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143682
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@aliftype.com>

diff --git a/vcl/inc/fontsubset.hxx b/vcl/inc/fontsubset.hxx
index cb4cb34dd979..d7e5318eec26 100644
--- a/vcl/inc/fontsubset.hxx
+++ b/vcl/inc/fontsubset.hxx
@@ -88,7 +88,6 @@ private:
 
     bool    CreateFontSubsetFromCff();
     bool    CreateFontSubsetFromSfnt();
-    static bool CreateFontSubsetFromType1();
 };
 
 int VCL_DLLPUBLIC TestFontSubset(const void* data, sal_uInt32 size);
diff --git a/vcl/source/fontsubset/fontsubset.cxx 
b/vcl/source/fontsubset/fontsubset.cxx
index 72b634b786f0..1e3daa401bc6 100644
--- a/vcl/source/fontsubset/fontsubset.cxx
+++ b/vcl/source/fontsubset/fontsubset.cxx
@@ -96,8 +96,6 @@ bool FontSubsetInfo::CreateFontSubset(
     case FontType::TYPE1_PFA:
     case FontType::TYPE1_PFB:
     case FontType::ANY_TYPE1:
-        bOK = CreateFontSubsetFromType1();
-        break;
     case FontType::NO_FONT:
     default:
         OSL_FAIL( "unhandled type in CreateFontSubset()");
@@ -151,12 +149,4 @@ bool FontSubsetInfo::CreateFontSubsetFromSfnt()
     return (nSFTErr != vcl::SFErrCodes::Ok);
 }
 
-// TODO: replace dummy implementation
-bool FontSubsetInfo::CreateFontSubsetFromType1()
-{
-    SAL_WARN("vcl.fonts",
-            "CreateFontSubsetFromType1: replace dummy implementation.");
-    return false;
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to