summaryrefslogtreecommitdiff
path: root/vcl/unx/generic
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2022-07-26 13:21:49 +0300
committerTor Lillqvist <tml@collabora.com>2022-07-26 20:36:09 +0200
commit1c31791b0635dd626ce05a697c648ded0d6fea87 (patch)
tree6ffaa352d468ef66464091d989f51e71ba54a867 /vcl/unx/generic
parenta89b221afe2d2d8aa670236fce6e95022ffa1cd9 (diff)
FreetypeManager::m_nMaxFontId is unused
Change-Id: Idf50eee8dee0ad5f5e789a8554b80114c2c9f795 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137461 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx2
-rw-r--r--vcl/unx/generic/glyphs/glyphcache.cxx1
2 files changed, 0 insertions, 3 deletions
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();
}