From 76b3e61bb4ac66decd7800ef309f3241e77d538f Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Mon, 25 Feb 2013 05:41:44 +0100 Subject: loplugin: unused variables Change-Id: I07b82471f0f32e9e894d4eb392beedeafc6be0c7 --- svtools/source/config/extcolorcfg.cxx | 1 - svtools/source/contnr/imivctl1.cxx | 1 - svtools/source/contnr/svimpbox.cxx | 1 - svtools/source/control/ruler.cxx | 2 -- svtools/source/misc/transfer.cxx | 2 -- svtools/source/toolpanel/paneltabbar.cxx | 2 -- 6 files changed, 9 deletions(-) (limited to 'svtools') diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index 98d361d3d515..9235317f6c36 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -418,7 +418,6 @@ void ExtendedColorConfig_Impl::Commit() return; const ::rtl::OUString sColorEntries(RTL_CONSTASCII_USTRINGPARAM("Entries")); const ::rtl::OUString sColor(RTL_CONSTASCII_USTRINGPARAM("/Color")); - const ::rtl::OUString sDefaultColor(RTL_CONSTASCII_USTRINGPARAM("/DefaultColor")); ::rtl::OUString sBase(RTL_CONSTASCII_USTRINGPARAM("ExtendedColorScheme/ColorSchemes/")); const ::rtl::OUString s_sSep(RTL_CONSTASCII_USTRINGPARAM("/")); sBase += m_sLoadedScheme; diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index 6dcc15a25720..b84ab9ed9308 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -2654,7 +2654,6 @@ void SvxIconChoiceCtrl_Impl::SetDefaultTextSize() if( nDX <= 0 ) nDX = 2; - String aStrDummy( RTL_CONSTASCII_USTRINGPARAM( "X" ) ); long nHeight = pView->GetTextHeight(); if( nDY < nHeight ) nDY = nHeight; diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 4888fbd30652..1c37d6de2943 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -951,7 +951,6 @@ void SvImpLBox::Paint( const Rectangle& rRect ) nFlags &= (~F_DESEL_ALL); pView->SetClipRegion(); - Rectangle aRect; if( !(nFlags & F_PAINTED) ) { nFlags |= F_PAINTED; diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index 99a8697472b4..fcc203759157 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -711,8 +711,6 @@ void Ruler::ImplDrawBorders( long nMin, long nMax, long nVirTop, long nVirBottom void Ruler::ImplDrawIndent( const Polygon& rPoly, sal_uInt16 nStyle ) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - Point aPos1; - Point aPos2; if ( nStyle & RULER_STYLE_INVISIBLE ) return; diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index 97988ce067ca..55e72daa1981 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -1398,8 +1398,6 @@ void TransferableDataHelper::FillDataFlavorExVector( const Sequence< DataFlavor // add, if it is a UTF-8 byte buffer if( xMimeType->hasParameter( aCharsetStr ) ) { - const ::rtl::OUString aCharset( xMimeType->getParameterValue( aCharsetStr ) ); - if( xMimeType->getParameterValue( aCharsetStr ).equalsIgnoreAsciiCase( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "unicode" )) ) || xMimeType->getParameterValue( aCharsetStr ).equalsIgnoreAsciiCase( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "utf-16" )) ) ) { diff --git a/svtools/source/toolpanel/paneltabbar.cxx b/svtools/source/toolpanel/paneltabbar.cxx index 1c08d59d303d..f7922a3b30ce 100644 --- a/svtools/source/toolpanel/paneltabbar.cxx +++ b/svtools/source/toolpanel/paneltabbar.cxx @@ -554,8 +554,6 @@ namespace svt ItemDescriptor aItem; aItem.pPanel = pPanel; - Rectangle aContentArea; - const Size aCompleteSize( impl_calculateItemContentSize( pPanel, TABITEM_IMAGE_AND_TEXT ) ); const Size aIconOnlySize( impl_calculateItemContentSize( pPanel, TABITEM_IMAGE_ONLY ) ); const Size aTextOnlySize( impl_calculateItemContentSize( pPanel, TABITEM_TEXT_ONLY ) ); -- cgit v1.2.3