summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-02 02:24:31 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-11-10 07:58:43 +0100
commitc8431b7fe226f6681adba7dc03f88235264081bb (patch)
treeeb8c50fd54e89213cb990d4e227b92ea905cc433 /vcl/win
parent2e4b89bb283d6d744b5f04cdcc2749f56271741d (diff)
remove unused code and const-ify some methods
Change-Id: I4c8da0cdf39f31ec757e87687dcec79a4ac83681
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/gdi/salgdi.cxx46
1 files changed, 4 insertions, 42 deletions
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 7eb758f09b43..c9f9cf4be19c 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -554,44 +554,6 @@ void ImplClearHDCCache( SalData* pData )
}
}
-WinSalGraphics::WinSalGraphics():
- mpImpl(new WinSalGraphicsImpl(*this)),
- mhLocalDC(0),
- mbPrinter(false),
- mbVirDev(false),
- mbWindow(false),
- mbScreen(false),
- mfCurrentFontScale(1.0),
- mhRegion(0),
- mhDefPen(0),
- mhDefBrush(0),
- mhDefFont(0),
- mhDefPal(0),
- mpStdClipRgnData(NULL),
- mpLogFont(NULL),
- mpFontCharSets(NULL),
- mpFontAttrCache(NULL),
- mnFontCharSetCount(0),
- mpFontKernPairs(NULL),
- mnFontKernPairCount(0),
- mbFontKernInit(false),
- mnPenWidth(GSL_PEN_WIDTH)
-{
- for( int i = 0; i < MAX_FALLBACK; ++i )
- {
- mhFonts[ i ] = 0;
- mpWinFontData[ i ] = NULL;
- mpWinFontEntry[ i ] = NULL;
- mfFontScale[ i ] = 1.0;
- }
-
- static const char* pEnv = getenv("USE_OPENGL");
- if (pEnv)
- {
- mpImpl.reset(new OpenGLSalGraphicsImpl());
- }
-}
-
WinSalGraphics::WinSalGraphics(WinSalGraphics::Type eType, bool bScreen):
mpImpl(new WinSalGraphicsImpl(*this)),
mhLocalDC(0),
@@ -651,22 +613,22 @@ WinSalGraphics::~WinSalGraphics()
delete mpFontKernPairs;
}
-bool WinSalGraphics::isPrinter()
+bool WinSalGraphics::isPrinter() const
{
return mbPrinter;
}
-bool WinSalGraphics::isVirtualDevice()
+bool WinSalGraphics::isVirtualDevice() const
{
return mbVirDev;
}
-bool WinSalGraphics::isWindow()
+bool WinSalGraphics::isWindow() const
{
return mbWindow;
}
-bool WinSalGraphics::isScreen()
+bool WinSalGraphics::isScreen() const
{
return mbScreen;
}