diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-18 14:30:24 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-20 08:07:53 +0000 |
commit | 72edb6967f245f0c99c6a61e0ce8d0a245600cba (patch) | |
tree | 5608bc1243477801e747735d8b71ec42fbb01e86 /vcl/unx/generic/gdi/cairotextrender.cxx | |
parent | convert SC_COMPILER to scoped enum (diff) | |
download | core-72edb6967f245f0c99c6a61e0ce8d0a245600cba.tar.gz core-72edb6967f245f0c99c6a61e0ce8d0a245600cba.zip |
loplugin:unusedmethods in vcl
also drops the CairoFontsCache ref-counting, since nothing was actually
using it.
Change-Id: If05ecb054b6b8d97b0d3010185cf23c28390ec04
Reviewed-on: https://gerrit.libreoffice.org/25105
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/unx/generic/gdi/cairotextrender.cxx')
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 62aeca15524d..513f5e58dc2e 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -119,23 +119,6 @@ void ServerFontInstance::HandleFontOptions() } CairoFontsCache::LRUFonts CairoFontsCache::maLRUFonts; -int CairoFontsCache::mnRefCount = 0; - -CairoFontsCache::CairoFontsCache() -{ - ++mnRefCount; -} - -CairoFontsCache::~CairoFontsCache() -{ - --mnRefCount; - if (!mnRefCount && !maLRUFonts.empty()) - { - LRUFonts::iterator aEnd = maLRUFonts.end(); - for (LRUFonts::iterator aI = maLRUFonts.begin(); aI != aEnd; ++aI) - cairo_font_face_destroy(static_cast<cairo_font_face_t*>(aI->first)); - } -} void CairoFontsCache::CacheFont(void *pFont, const CairoFontsCache::CacheId &rId) { |