summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-05-25 20:06:26 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-27 08:31:49 +0000
commitc8754b38ce205845aad5cde3c5ad4070ce38f7d5 (patch)
tree6023cfb5e9e7e64029973908bd07decd4b5e72d2 /vcl
parenta9d2302d4d0732a0c1203bbb7c0182b8de59403d (diff)
remove unused RSC_DOCKWINDOW flags
Change-Id: I2e2d82760b10876a7cf2a8cfb375926eb24d23e4 Reviewed-on: https://gerrit.libreoffice.org/25462 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dockwin.cxx33
1 files changed, 1 insertions, 32 deletions
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index 984d713959f6..ddcd0798174e 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -380,38 +380,7 @@ void DockingWindow::ImplLoadRes( const ResId& rResId )
{
Window::ImplLoadRes( rResId );
- const sal_uInt32 nMask = ReadLongRes();
-
- if ( (RSC_DOCKINGWINDOW_XYMAPMODE | RSC_DOCKINGWINDOW_X |
- RSC_DOCKINGWINDOW_Y) & nMask )
- {
- // use Sizes of the Resource
- Point aPos;
- MapUnit ePosMap = MAP_PIXEL;
-
- if ( RSC_DOCKINGWINDOW_XYMAPMODE & nMask )
- ePosMap = (MapUnit)ReadLongRes();
-
- if ( RSC_DOCKINGWINDOW_X & nMask )
- {
- aPos.X() = ReadShortRes();
- aPos.X() = ImplLogicUnitToPixelX( aPos.X(), ePosMap );
- }
-
- if ( RSC_DOCKINGWINDOW_Y & nMask )
- {
- aPos.Y() = ReadShortRes();
- aPos.Y() = ImplLogicUnitToPixelY( aPos.Y(), ePosMap );
- }
-
- SetFloatingPos( aPos );
- }
-
- if ( nMask & RSC_DOCKINGWINDOW_FLOATING )
- {
- if ( ReadShortRes() != 0 )
- SetFloatingMode( true );
- }
+ ReadLongRes();
}
DockingWindow::DockingWindow( WindowType nType ) :