summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2015-11-24 09:13:48 +0400
committerKhaled Hosny <khaledhosny@eglug.org>2015-11-24 09:15:35 +0400
commitaefcb307c246275fa9001996bd815c73b4ac79b3 (patch)
tree0f8a4b2d2ddaf8663c2fa4c7e598d0892bc4d9f5 /vcl/generic
parentc3a61d64969a3c023b4dcbf077aaf4c19917541e (diff)
Remove recently unused code
Change-Id: I47a28fa127bd84527c0d6d96a7d06a5932b29305
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 51bb542642e4..cd8645440187 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -64,28 +64,6 @@
#include <sys/mman.h>
#include "fontmanager.hxx"
-// the gamma table makes artificial bold look better for CJK glyphs
-static unsigned char aGammaTable[257];
-
-static void InitGammaTable()
-{
- static const int M_MAX = 255;
- static const int M_X = 128;
- static const int M_Y = 208;
-
- int x, a;
- for( x = 0; x < 256; x++)
- {
- if ( x <= M_X )
- a = ( x * M_Y + M_X / 2) / M_X;
- else
- a = M_Y + ( ( x - M_X ) * ( M_MAX - M_Y ) +
- ( M_MAX - M_X ) / 2 ) / ( M_MAX - M_X );
-
- aGammaTable[x] = (unsigned char)a;
- }
-}
-
static FT_Library aLibFT = nullptr;
// enable linking with old FT versions
@@ -373,7 +351,6 @@ FreetypeManager::FreetypeManager()
if( pEnv )
nDefaultPrioAutoHint = pEnv[0] - '0';
- InitGammaTable();
vclFontFileList::get();
}