summaryrefslogtreecommitdiff
path: root/vcl/quartz/salgdicommon.cxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-09-05 22:36:20 +0200
committerخالد حسني <khaled@aliftype.com>2022-09-06 15:09:57 +0200
commit394655636307de3ba3c4b2d52f3c1abf4b900e18 (patch)
tree5e898736ca4f3b715aa7320d2e0c62898b3e2e8f /vcl/quartz/salgdicommon.cxx
parent12b89902036dba8d457c3e03080a4db50b99adcb (diff)
vcl: Drop unused SalGraphics::CreateFontSubset() argument
pWidths is always nullptr. Change-Id: I1c666f146865786269e9513cbb6c8ffdc7df96e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139461 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/quartz/salgdicommon.cxx')
-rw-r--r--vcl/quartz/salgdicommon.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 197f4b38f6bf..992db536e7d5 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -49,7 +49,7 @@ using namespace vcl;
bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile,
const vcl::font::PhysicalFontFace* pFontData,
const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncoding,
- sal_Int32* pGlyphWidths, const int nGlyphCount,
+ const int nGlyphCount,
FontSubsetInfo& rInfo )
{
// TODO: move more of the functionality here into the generic subsetter code
@@ -71,7 +71,7 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile,
// NOTE: assuming that all glyphids requested on Aqua are fully translated
if (bCffOnly)
return SalGraphics::CreateCFFfontSubset(aBuffer.data(), aBuffer.size(), aToFile, pGlyphIds,
- pEncoding, pGlyphWidths, nGlyphCount, rInfo);
+ pEncoding, nGlyphCount, rInfo);
// TODO: modernize psprint's horrible fontsubset C-API
// this probably only makes sense after the switch to another SCM
@@ -91,8 +91,8 @@ bool AquaSalGraphics::CreateFontSubset( const OUString& rToFile,
// write subset into destination file
bool bRet
- = SalGraphics::CreateTTFfontSubset(*pSftFont, aToFile, false /* use FontSelectPattern? */,
- pGlyphIds, pEncoding, pGlyphWidths, nGlyphCount);
+ = SalGraphics::CreateTTFfontSubset(*pSftFont, aToFile,
+ pGlyphIds, pEncoding, nGlyphCount);
::CloseTTFont(pSftFont);
return bRet;
}