From 1c31791b0635dd626ce05a697c648ded0d6fea87 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 26 Jul 2022 13:21:49 +0300 Subject: FreetypeManager::m_nMaxFontId is unused Change-Id: Idf50eee8dee0ad5f5e789a8554b80114c2c9f795 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137461 Tested-by: Jenkins Reviewed-by: Tor Lillqvist --- vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 2 -- vcl/unx/generic/glyphs/glyphcache.cxx | 1 - 2 files changed, 3 deletions(-) (limited to 'vcl/unx/generic') diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx index cd5e771d4c96..848405169cd2 100644 --- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx +++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx @@ -366,8 +366,6 @@ void FreetypeManager::AddFontFile(const OString& rNormalizedName, FreetypeFontInfo* pFontInfo = new FreetypeFontInfo( rDevFontAttr, FindFontFile(rNormalizedName), nFaceNum, nVariantNum, nFontId); m_aFontInfoList[ nFontId ].reset(pFontInfo); - if( m_nMaxFontId < nFontId ) - m_nMaxFontId = nFontId; } void FreetypeManager::AnnounceFonts( vcl::font::PhysicalFontCollection* pToAdd ) const diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx index 79db2d87bdb0..896585a87a27 100644 --- a/vcl/unx/generic/glyphs/glyphcache.cxx +++ b/vcl/unx/generic/glyphs/glyphcache.cxx @@ -29,7 +29,6 @@ #include FreetypeManager::FreetypeManager() - : m_nMaxFontId(0) { InitFreetype(); } -- cgit