vcl/inc/unx/glyphcache.hxx | 1 - vcl/unx/generic/glyphs/freetype_glyphcache.cxx | 2 -- vcl/unx/generic/glyphs/glyphcache.cxx | 1 - 3 files changed, 4 deletions(-)
New commits: commit 1c31791b0635dd626ce05a697c648ded0d6fea87 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Tue Jul 26 13:21:49 2022 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Tue Jul 26 20:36:09 2022 +0200 FreetypeManager::m_nMaxFontId is unused Change-Id: Idf50eee8dee0ad5f5e789a8554b80114c2c9f795 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137461 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 8c2d0e6400ef..b54e10bdb20b 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -105,7 +105,6 @@ private: typedef std::unordered_map<const char*, std::unique_ptr<FreetypeFontFile>, rtl::CStringHash, rtl::CStringEqual> FontFileList; FontInfoList m_aFontInfoList; - sal_IntPtr m_nMaxFontId; FontFileList m_aFontFileList; }; 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 <sal/log.hxx> FreetypeManager::FreetypeManager() - : m_nMaxFontId(0) { InitFreetype(); }