summaryrefslogtreecommitdiff
path: root/vcl/opengl/x11/salvd.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 15:28:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-17 15:07:35 +0200
commit561a02ec72cf963d7cd59cfb9a183c1032f0861b (patch)
treea25f9bc0d2ef9af339be1e33f138d4e6f9691fca /vcl/opengl/x11/salvd.cxx
parentf9d5da8b491e30a08fa6996164e12e4d8715af46 (diff)
loplugin:unusedfields in vcl part3
Change-Id: I5a6319ba1667af6e9b7b92c22f858188c28c4c61 Reviewed-on: https://gerrit.libreoffice.org/38835 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl/x11/salvd.cxx')
-rw-r--r--vcl/opengl/x11/salvd.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/vcl/opengl/x11/salvd.cxx b/vcl/opengl/x11/salvd.cxx
index 17edbf6cce22..f06e9c3a43a5 100644
--- a/vcl/opengl/x11/salvd.cxx
+++ b/vcl/opengl/x11/salvd.cxx
@@ -34,7 +34,7 @@ void X11SalGraphics::Init( X11OpenGLSalVirtualDevice *pDevice )
X11OpenGLSalVirtualDevice::X11OpenGLSalVirtualDevice( SalGraphics* pGraphics,
long &nDX, long &nDY,
- DeviceFormat eFormat,
+ DeviceFormat /*eFormat*/,
const SystemGraphicsData *pData,
X11SalGraphics* pNewGraphics) :
mpGraphics(pNewGraphics),
@@ -43,23 +43,10 @@ X11OpenGLSalVirtualDevice::X11OpenGLSalVirtualDevice( SalGraphics* pGraphics,
{
assert(mpGraphics);
- sal_uInt16 nBitCount;
- switch (eFormat)
- {
- case DeviceFormat::BITMASK:
- nBitCount = 1;
- break;
- default:
- nBitCount = pGraphics->GetBitCount();
- break;
-
- }
-
// TODO Check where a VirtualDevice is created from SystemGraphicsData
assert( pData == nullptr ); (void)pData;
mpDisplay = vcl_sal::getSalDisplay(GetGenericData());
- mnDepth = nBitCount;
mnXScreen = pGraphics ? static_cast<X11SalGraphics*>(pGraphics)->GetScreenNumber() :
vcl_sal::getSalDisplay(GetGenericData())->GetDefaultXScreen();
mnWidth = nDX;