From 3d385fefb9013f31ba3f7b909623afd5fa6b6cdc Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 24 May 2014 17:06:47 +0200 Subject: cppcheck: unreadVariable Change-Id: If3d480bf3032ec2bd2edc62bb73dd93b00c2cbe7 --- vcl/source/window/splitwin.cxx | 8 -------- 1 file changed, 8 deletions(-) (limited to 'vcl/source/window/splitwin.cxx') diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index b2882202aff9..be04473b45d1 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -634,14 +634,6 @@ static void ImplCalcSet( ImplSplitSet* pSet, } } } - else - { - for ( i = 0; i < nItems; i++ ) - { - if ( !(pItems[i].mnBits & SWIB_INVISIBLE) ) - nCurSize += pItems[i].mnPixSize; - } - } // calculate maximum size if ( bRows ) -- cgit v1.2.3