diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-02-13 13:17:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-13 13:17:19 +0000 |
commit | 8f1270db7d871df1a6155c1e4f51568753a54b04 (patch) | |
tree | 78374e63f2580e2dd3c80881194bcf3c5a92bb04 /vcl | |
parent | 507a5d0eb718bcd6c294029775008e0f99d70e0f (diff) |
unusedcode.easy: Removed unused code
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/field.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/vcl/metaact.hxx | 3 | ||||
-rw-r--r-- | vcl/inc/vcl/morebtn.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/vcl/msgbox.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/vcl/settings.hxx | 1 | ||||
-rw-r--r-- | vcl/source/app/settings.cxx | 14 | ||||
-rw-r--r-- | vcl/source/control/field.cxx | 20 | ||||
-rw-r--r-- | vcl/source/control/morebtn.cxx | 17 | ||||
-rw-r--r-- | vcl/source/gdi/metaact.cxx | 19 | ||||
-rw-r--r-- | vcl/source/window/msgbox.cxx | 8 |
10 files changed, 0 insertions, 87 deletions
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx index 970c81d917dd..9f0b320a5e85 100644 --- a/vcl/inc/vcl/field.hxx +++ b/vcl/inc/vcl/field.hxx @@ -574,8 +574,6 @@ public: static sal_Int64 ConvertValue( sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit ); static sal_Int64 ConvertValue( sal_Int64 nValue, sal_uInt16 nDecDigits, - FieldUnit eInUnit, MapUnit eOutUnit ); - static sal_Int64 ConvertValue( sal_Int64 nValue, sal_uInt16 nDecDigits, MapUnit eInUnit, FieldUnit eOutUnit ); // for backwards compatibility @@ -768,7 +766,6 @@ public: void InsertValue( sal_Int64 nValue, FieldUnit eInUnit = FUNIT_NONE, sal_uInt16 nPos = COMBOBOX_APPEND ); - void RemoveValue( sal_Int64 nValue, FieldUnit eInUnit = FUNIT_NONE ); sal_Int64 GetValue( sal_uInt16 nPos, FieldUnit eOutUnit = FUNIT_NONE ) const; sal_uInt16 GetValuePos( sal_Int64 nValue, FieldUnit eInUnit = FUNIT_NONE ) const; diff --git a/vcl/inc/vcl/metaact.hxx b/vcl/inc/vcl/metaact.hxx index 3c02e79ccb75..493389b13c68 100644 --- a/vcl/inc/vcl/metaact.hxx +++ b/vcl/inc/vcl/metaact.hxx @@ -180,8 +180,6 @@ public: virtual void Write( SvStream& rOStm, ImplMetaWriteData* pData ); virtual void Read( SvStream& rIStm, ImplMetaReadData* pData ); - sal_Bool IsEqual( const MetaAction& ) const; - sal_uInt16 GetType() const { return mnType; } sal_uLong GetRefCount() const { return mnRefCount; } void ResetRefCount() { mnRefCount = 1; } @@ -1502,7 +1500,6 @@ public: MetaCommentAction( sal_Int32 nValue = 0L ); MetaCommentAction( const MetaCommentAction& rAct ); MetaCommentAction( const rtl::OString& rComment, sal_Int32 nValue = 0L, const sal_uInt8* pData = NULL, sal_uInt32 nDataSize = 0UL ); - MetaCommentAction( const sal_uInt8* pData, sal_uInt32 nDataSize ); virtual void Move( long nHorzMove, long nVertMove ); virtual void Scale( double fScaleX, double fScaleY ); diff --git a/vcl/inc/vcl/morebtn.hxx b/vcl/inc/vcl/morebtn.hxx index e84798479d7f..04ae32653d2a 100644 --- a/vcl/inc/vcl/morebtn.hxx +++ b/vcl/inc/vcl/morebtn.hxx @@ -66,7 +66,6 @@ public: void Click(); void AddWindow( Window* pWindow ); - void RemoveWindow( Window* pWindow ); void SetDelta( sal_uLong nNewDelta ) { mnDelta = nNewDelta; } sal_uLong GetDelta() const { return mnDelta; } diff --git a/vcl/inc/vcl/msgbox.hxx b/vcl/inc/vcl/msgbox.hxx index 30fae2000ec4..fb960b847ff7 100644 --- a/vcl/inc/vcl/msgbox.hxx +++ b/vcl/inc/vcl/msgbox.hxx @@ -83,7 +83,6 @@ protected: protected: SAL_DLLPRIVATE void ImplLoadRes( const ResId& rResId ); - MessBox( WindowType nType ); public: MessBox( Window* pParent, WinBits nStyle, diff --git a/vcl/inc/vcl/settings.hxx b/vcl/inc/vcl/settings.hxx index ba961b1f8356..fb05379e4c04 100644 --- a/vcl/inc/vcl/settings.hxx +++ b/vcl/inc/vcl/settings.hxx @@ -994,7 +994,6 @@ public: void SetEnableATToolSupport( sal_Bool bEnable ); #endif sal_Bool GetEnableATToolSupport() const; - void SetDisablePrinting( sal_Bool bEnable ); sal_Bool GetDisablePrinting() const; void SetEnableLocalizedDecimalSep( sal_Bool bEnable ); sal_Bool GetEnableLocalizedDecimalSep() const; diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx index 1502d063b47b..c2cca2d2f40e 100644 --- a/vcl/source/app/settings.cxx +++ b/vcl/source/app/settings.cxx @@ -1216,20 +1216,6 @@ sal_Bool MiscSettings::GetEnableATToolSupport() const return (sal_Bool)mpData->mnEnableATT; } -// ----------------------------------------------------------------------- - -void MiscSettings::SetDisablePrinting( sal_Bool bEnable ) -{ - if ( bEnable != mpData->mnDisablePrinting ) - { - vcl::SettingsConfigItem::get()-> - setValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DesktopManagement" ) ), - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DisablePrinting" ) ), - bEnable ? rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("true")) : rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("false" )) ); - mpData->mnDisablePrinting = bEnable ? 1 : 0; - } -} - #ifdef WNT void MiscSettings::SetEnableATToolSupport( sal_Bool bEnable ) { diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index 823a70a8a696..66176e8d4d5d 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -1246,16 +1246,6 @@ sal_Int64 MetricField::ConvertValue( sal_Int64 nValue, sal_uInt16 nDigits, // ----------------------------------------------------------------------- -sal_Int64 MetricField::ConvertValue( sal_Int64 nValue, sal_uInt16 nDigits, - FieldUnit eInUnit, MapUnit eOutUnit ) -{ - return static_cast<sal_Int64>( - nonValueDoubleToValueDouble( - ConvertDoubleValue( nValue, nDigits, eInUnit, eOutUnit ) ) ); -} - -// ----------------------------------------------------------------------- - double MetricField::ConvertDoubleValue( double nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits, FieldUnit eInUnit, FieldUnit eOutUnit ) { @@ -2016,16 +2006,6 @@ void MetricBox::InsertValue( sal_Int64 nValue, FieldUnit eInUnit, sal_uInt16 nPo // ----------------------------------------------------------------------- -void MetricBox::RemoveValue( sal_Int64 nValue, FieldUnit eInUnit ) -{ - // Umrechnen auf eingestellte Einheiten - nValue = MetricField::ConvertValue( nValue, mnBaseValue, GetDecimalDigits(), - eInUnit, meUnit ); - ComboBox::RemoveEntry( CreateFieldText( nValue ) ); -} - -// ----------------------------------------------------------------------- - sal_Int64 MetricBox::GetValue( sal_uInt16 nPos, FieldUnit eOutUnit ) const { double nValue = 0; diff --git a/vcl/source/control/morebtn.cxx b/vcl/source/control/morebtn.cxx index 51d207791785..dde215108b76 100644 --- a/vcl/source/control/morebtn.cxx +++ b/vcl/source/control/morebtn.cxx @@ -215,23 +215,6 @@ void MoreButton::AddWindow( Window* pWindow ) // ----------------------------------------------------------------------- -void MoreButton::RemoveWindow( Window* pWindow ) -{ - if ( mpMBData->mpItemList ) { - for ( ImplMoreWindowList::iterator it = mpMBData->mpItemList->begin(); - it < mpMBData->mpItemList->end(); - ++it - ) { - if ( *it == pWindow ) { - mpMBData->mpItemList->erase( it ); - break; - } - } - } -} - -// ----------------------------------------------------------------------- - void MoreButton::SetText( const XubString& rText ) { PushButton::SetText( rText ); diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index f67c1cc572dd..057239443f35 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -146,16 +146,6 @@ sal_Bool MetaAction::Compare( const MetaAction& ) const // ------------------------------------------------------------------------ -sal_Bool MetaAction::IsEqual( const MetaAction& rMetaAction ) const -{ - if ( mnType != rMetaAction.mnType ) - return sal_False; - else - return Compare( rMetaAction ); -} - -// ------------------------------------------------------------------------ - void MetaAction::Write( SvStream& rOStm, ImplMetaWriteData* ) { rOStm << mnType; @@ -3988,15 +3978,6 @@ MetaCommentAction::MetaCommentAction( const rtl::OString& rComment, sal_Int32 nV // ------------------------------------------------------------------------ -MetaCommentAction::MetaCommentAction( const sal_uInt8* pData, sal_uInt32 nDataSize ) : - MetaAction ( META_COMMENT_ACTION ), - mnValue ( 0L ) -{ - ImplInitDynamicData( pData, nDataSize ); -} - -// ------------------------------------------------------------------------ - MetaCommentAction::~MetaCommentAction() { if ( mpData ) diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 0efd9721cd25..4e5e796657f9 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -156,14 +156,6 @@ void MessBox::ImplInitButtons() // ----------------------------------------------------------------------- -MessBox::MessBox( WindowType ) : - ButtonDialog( WINDOW_MESSBOX ) -{ - ImplInitMessBoxData(); -} - -// ----------------------------------------------------------------------- - MessBox::MessBox( Window* pParent, WinBits nStyle, const XubString& rTitle, const XubString& rMessage ) : ButtonDialog( WINDOW_MESSBOX ), |