summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-12-05 17:58:58 +0200
committerخالد حسني <khaled@aliftype.com>2022-12-05 21:12:48 +0000
commit05b7e6039da5fda18205798d00e335b2c8126872 (patch)
treecca10d2c392fe5f6aa340d48d366e978cb068061
parentdb7f8b960ef44726b8a468eeaa9edd2eba4e6544 (diff)
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: خالد حسني <khaled@aliftype.com>
-rw-r--r--vcl/inc/fontsubset.hxx1
-rw-r--r--vcl/source/fontsubset/fontsubset.cxx10
2 files changed, 0 insertions, 11 deletions
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: */