summaryrefslogtreecommitdiffstats
path: root/vcl/unx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-18 14:30:24 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-20 08:07:53 +0000
commit72edb6967f245f0c99c6a61e0ce8d0a245600cba (patch)
tree5608bc1243477801e747735d8b71ec42fbb01e86 /vcl/unx
parentconvert SC_COMPILER to scoped enum (diff)
downloadcore-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')
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx17
-rw-r--r--vcl/unx/generic/glyphs/scrptrun.h13
2 files changed, 0 insertions, 30 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)
{
diff --git a/vcl/unx/generic/glyphs/scrptrun.h b/vcl/unx/generic/glyphs/scrptrun.h
index 2efcff4110ba..a13b65ffed70 100644
--- a/vcl/unx/generic/glyphs/scrptrun.h
+++ b/vcl/unx/generic/glyphs/scrptrun.h
@@ -60,12 +60,9 @@ struct ParenStackEntry
class ScriptRun : public UObject {
public:
- ScriptRun();
ScriptRun(const UChar chars[], int32_t length);
- ScriptRun(const UChar chars[], int32_t start, int32_t length);
-
void reset();
void reset(int32_t start, int32_t count);
@@ -114,21 +111,11 @@ private:
static const char fgClassID;
};
-inline ScriptRun::ScriptRun()
-{
- reset(NULL, 0, 0);
-}
-
inline ScriptRun::ScriptRun(const UChar chars[], int32_t length)
{
reset(chars, 0, length);
}
-inline ScriptRun::ScriptRun(const UChar chars[], int32_t start, int32_t length)
-{
- reset(chars, start, length);
-}
-
inline int32_t ScriptRun::getScriptStart()
{
return scriptStart;