poppler/GfxFont.cc | 11 ----------- poppler/GfxFont.h | 3 --- 2 files changed, 14 deletions(-)
New commits: commit eefc8ef6fd0a355cc83c2ac099ec81636f9a823a Author: Albert Astals Cid <aa...@kde.org> Date: Sun Mar 27 22:27:14 2022 +0200 Remove unused function diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc index 0f46cffa..aec55cd6 100644 --- a/poppler/GfxFont.cc +++ b/poppler/GfxFont.cc @@ -775,17 +775,6 @@ std::optional<GfxFontLoc> GfxFont::locateFont(XRef *xref, PSOutputDev *ps) return std::nullopt; } -std::optional<GfxFontLoc> GfxFont::locateBase14Font(const GooString *base14Name) -{ - GooString *path; - - path = globalParams->findFontFile(base14Name); - if (!path) { - return std::nullopt; - } - return getExternalFont(path, false); -} - std::optional<GfxFontLoc> GfxFont::getExternalFont(GooString *path, bool cid) { FoFiIdentifierType fft; diff --git a/poppler/GfxFont.h b/poppler/GfxFont.h index fed9e2e5..0409680f 100644 --- a/poppler/GfxFont.h +++ b/poppler/GfxFont.h @@ -278,9 +278,6 @@ public: // printer-resident fonts. Returns std::optional without a value on failure. std::optional<GfxFontLoc> locateFont(XRef *xref, PSOutputDev *ps); - // Locate a Base-14 font file for a specified font name. - static std::optional<GfxFontLoc> locateBase14Font(const GooString *base14Name); - // Read an external or embedded font file into a buffer. std::vector<unsigned char> readEmbFontFile(XRef *xref);