summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-06 09:11:44 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-06 13:14:08 +0000
commit032c0ec6b18718dc2bde580ced9781048a2fdbb9 (patch)
tree4079ce5acbfe57705195d9531cb81b816e4ee3a9 /svl
parent593206bda7ae6b522a5f29aef25445722aedeb4c (diff)
loplugin:unusedmethods svl
Change-Id: Ic136cce6abef44291b7236a6d709f0eee391f311 Reviewed-on: https://gerrit.libreoffice.org/16784 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/filerec/filerec.cxx32
-rw-r--r--svl/source/inc/passwordcontainer.hxx2
-rw-r--r--svl/source/items/ctypeitm.cxx10
-rw-r--r--svl/source/items/custritm.cxx11
-rw-r--r--svl/source/items/int64item.cxx5
-rw-r--r--svl/source/items/poolitem.cxx6
-rw-r--r--svl/source/items/style.cxx18
-rw-r--r--svl/source/items/stylepool.cxx15
-rw-r--r--svl/source/notify/listener.cxx5
-rw-r--r--svl/source/numbers/currencytable.cxx5
-rw-r--r--svl/source/numbers/zforscan.hxx1
11 files changed, 0 insertions, 110 deletions
diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx
index c68a8c6cad6e..c703193518da 100644
--- a/svl/source/filerec/filerec.cxx
+++ b/svl/source/filerec/filerec.cxx
@@ -32,7 +32,6 @@
#define SFX_REC_PRE(n) ( ((n) & 0x000000FF) )
#define SFX_REC_OFS(n) ( ((n) & 0xFFFFFF00) >> 8 )
#define SFX_REC_TYP(n) ( ((n) & 0x000000FF) )
-#define SFX_REC_VER(n) ( ((n) & 0x0000FF00) >> 8 )
#define SFX_REC_TAG(n) ( ((n) & 0xFFFF0000) >> 16 )
#define SFX_REC_CONTENT_VER(n) ( ((n) & 0x000000FF) )
@@ -224,37 +223,6 @@ SfxSingleRecordWriter::SfxSingleRecordWriter(sal_uInt8 nRecordType,
/**
*
- * Internal method for reading an SfxMultiRecord header, after
- * the base class has been initialized and its header has been read.
- * Set an error code on the stream if needed, but don't seek back
- * in case of error.
- */
-inline bool SfxSingleRecordReader::ReadHeader_Impl( sal_uInt16 nTypes )
-{
- bool bRet;
-
- // read header of the base class
- sal_uInt32 nHeader=0;
- _pStream->ReadUInt32( nHeader );
- if ( !SetHeader_Impl( nHeader ) )
- bRet = false;
- else
- {
- // read own header
- _pStream->ReadUInt32( nHeader );
- _nRecordVer = sal::static_int_cast< sal_uInt8 >(SFX_REC_VER(nHeader));
- _nRecordTag = sal::static_int_cast< sal_uInt16 >(SFX_REC_TAG(nHeader));
-
- // wrong record type?
- _nRecordType = sal::static_int_cast< sal_uInt8 >(SFX_REC_TYP(nHeader));
- bRet = 0 != ( nTypes & _nRecordType);
- }
- return bRet;
-}
-
-
-/**
- *
* @param nTypes arithmetic OR of allowed record types
* @param nTag record tag to find
*
diff --git a/svl/source/inc/passwordcontainer.hxx b/svl/source/inc/passwordcontainer.hxx
index 89961e36ff8b..fdef4f422327 100644
--- a/svl/source/inc/passwordcontainer.hxx
+++ b/svl/source/inc/passwordcontainer.hxx
@@ -403,8 +403,6 @@ public:
RW_SvMemoryStream( sal_uLong InitSize=512, sal_uLong Resize=64 ):
SvMemoryStream( InitSize, Resize ){}
-
- sal_uLong getActualSize(){ return nEndOfData; }
};
diff --git a/svl/source/items/ctypeitm.cxx b/svl/source/items/ctypeitm.cxx
index a5427df0b2f8..36eaa98faa02 100644
--- a/svl/source/items/ctypeitm.cxx
+++ b/svl/source/items/ctypeitm.cxx
@@ -121,16 +121,6 @@ void CntContentTypeItem::SetValue( const OUString& rNewVal )
CntUnencodedStringItem::SetValue( rNewVal );
}
-int CntContentTypeItem::Compare( const SfxPoolItem &rWith, const IntlWrapper& rIntlWrapper ) const
-{
- OUString aOwnText, aWithText;
- GetPresentation( SFX_ITEM_PRESENTATION_NAMELESS,
- SFX_MAPUNIT_APPFONT, SFX_MAPUNIT_APPFONT, aOwnText, &rIntlWrapper );
- rWith.GetPresentation( SFX_ITEM_PRESENTATION_NAMELESS,
- SFX_MAPUNIT_APPFONT, SFX_MAPUNIT_APPFONT, aWithText, &rIntlWrapper );
- return rIntlWrapper.getCollator()->compareString( aOwnText, aWithText );
-}
-
bool CntContentTypeItem::GetPresentation(
SfxItemPresentation ePres,
SfxMapUnit eCoreMetric,
diff --git a/svl/source/items/custritm.cxx b/svl/source/items/custritm.cxx
index 2adf2c7d6dcc..2ed6d6a4ba94 100644
--- a/svl/source/items/custritm.cxx
+++ b/svl/source/items/custritm.cxx
@@ -48,17 +48,6 @@ int CntUnencodedStringItem::Compare(SfxPoolItem const & rWith) const
}
// virtual
-int CntUnencodedStringItem::Compare(SfxPoolItem const & rWith,
- IntlWrapper const & rIntlWrapper)
- const
-{
- DBG_ASSERT(rWith.ISA(CntUnencodedStringItem),
- "CntUnencodedStringItem::Compare(): Bad type");
- return rIntlWrapper.getCollator()->compareString( m_aValue,
- static_cast< CntUnencodedStringItem const * >(&rWith)->m_aValue );
-}
-
-// virtual
bool CntUnencodedStringItem::GetPresentation(SfxItemPresentation, SfxMapUnit,
SfxMapUnit, OUString & rText,
const IntlWrapper *) const
diff --git a/svl/source/items/int64item.cxx b/svl/source/items/int64item.cxx
index b9be4fb280aa..f884106aa3db 100644
--- a/svl/source/items/int64item.cxx
+++ b/svl/source/items/int64item.cxx
@@ -46,11 +46,6 @@ int SfxInt64Item::Compare( const SfxPoolItem& r ) const
return 0;
}
-int SfxInt64Item::Compare( const SfxPoolItem& r, const IntlWrapper& /*rIntlWrapper*/ ) const
-{
- return Compare(r);
-}
-
bool SfxInt64Item::GetPresentation(
SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString& rText,
const IntlWrapper* /*pIntlWrapper*/ ) const
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index d6480b01cd41..d5bcc71cc4cf 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -129,12 +129,6 @@ int SfxPoolItem::Compare( const SfxPoolItem& ) const
}
-int SfxPoolItem::Compare( const SfxPoolItem& rWith, const IntlWrapper& ) const
-{
- return Compare( rWith );
-}
-
-
bool SfxPoolItem::operator==( const SfxPoolItem& rCmp ) const
{
return rCmp.Type() == Type();
diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx
index a9a9ce3ce7c5..4404a2543d03 100644
--- a/svl/source/items/style.cxx
+++ b/svl/source/items/style.cxx
@@ -337,14 +337,6 @@ bool SfxStyleSheetBase::IsUsed() const
/**
* Return set attributes
*/
-OUString SfxStyleSheetBase::GetDescription()
-{
- return GetDescription( SFX_MAPUNIT_CM );
-}
-
-/**
- * Return set attributes
- */
OUString SfxStyleSheetBase::GetDescription( SfxMapUnit eMetric )
{
SfxItemIter aIter( GetItemSet() );
@@ -569,16 +561,6 @@ sal_uInt16 SfxStyleSheetIterator::GetSearchMask() const
}
-void SfxStyleSheetBasePool::Replace( SfxStyleSheetBase& rSource, SfxStyleSheetBase& rTarget )
-{
- rTarget.SetFollow( rSource.GetFollow() );
- rTarget.SetParent( rSource.GetParent() );
- SfxItemSet& rSourceSet = rSource.GetItemSet();
- SfxItemSet& rTargetSet = rTarget.GetItemSet();
- rTargetSet.Intersect( rSourceSet );
- rTargetSet.Put( rSourceSet );
-}
-
SfxStyleSheetIterator& SfxStyleSheetBasePool::GetIterator_Impl()
{
if( !pImp->pIter || (pImp->pIter->GetSearchMask() != nMask) || (pImp->pIter->GetSearchFamily() != nSearchFamily) )
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx
index 31fbaf3119ec..dfd564a61b09 100644
--- a/svl/source/items/stylepool.cxx
+++ b/svl/source/items/stylepool.cxx
@@ -292,7 +292,6 @@ namespace {
mbSkipIgnorable( bSkipIgnorable )
{}
virtual StylePool::SfxItemSet_Pointer_t getNext() SAL_OVERRIDE;
- virtual OUString getName() SAL_OVERRIDE;
};
StylePool::SfxItemSet_Pointer_t Iterator::getNext()
@@ -327,16 +326,6 @@ namespace {
return pReturn;
}
- OUString Iterator::getName()
- {
- OUString aString;
- if( mpNode && mpNode->hasItemSet( false ) )
- {
- aString = StylePool::nameOf( mpNode->getUsedOrLastAddedItemSet() );
- }
- return aString;
- }
-
}
/**
@@ -386,7 +375,6 @@ public:
// #i86923#
IStylePoolIteratorAccess* createIterator( bool bSkipUnusedItemSets = false,
bool bSkipIgnorableItems = false );
- sal_Int32 getCount() const { return mnCount; }
};
StylePool::SfxItemSet_Pointer_t StylePoolImpl::insertItemSet( const SfxItemSet& rSet )
@@ -479,9 +467,6 @@ IStylePoolIteratorAccess* StylePool::createIterator( const bool bSkipUnusedItemS
return pImpl->createIterator( bSkipUnusedItemSets, bSkipIgnorableItems );
}
-sal_Int32 StylePool::getCount() const
-{ return pImpl->getCount(); }
-
StylePool::~StylePool() { delete pImpl; }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx
index 9c2a3921404f..52adeb948de9 100644
--- a/svl/source/notify/listener.cxx
+++ b/svl/source/notify/listener.cxx
@@ -77,11 +77,6 @@ void SvtListener::EndListeningAll()
}
-bool SvtListener::IsListening( SvtBroadcaster& rBroadcaster ) const
-{
- return maBroadcasters.count(&rBroadcaster) > 0;
-}
-
void SvtListener::CopyAllBroadcasters( const SvtListener& r )
{
BroadcastersType aCopy(r.maBroadcasters);
diff --git a/svl/source/numbers/currencytable.cxx b/svl/source/numbers/currencytable.cxx
index 77745e44db84..91be75e1b5b1 100644
--- a/svl/source/numbers/currencytable.cxx
+++ b/svl/source/numbers/currencytable.cxx
@@ -14,11 +14,6 @@ NfCurrencyTable::iterator NfCurrencyTable::begin()
return maData.begin();
}
-NfCurrencyTable::const_iterator NfCurrencyTable::begin() const
-{
- return maData.begin();
-}
-
NfCurrencyEntry& NfCurrencyTable::operator[] ( size_t i )
{
return maData[i];
diff --git a/svl/source/numbers/zforscan.hxx b/svl/source/numbers/zforscan.hxx
index 9e8816b8c628..c5933200013a 100644
--- a/svl/source/numbers/zforscan.hxx
+++ b/svl/source/numbers/zforscan.hxx
@@ -76,7 +76,6 @@ public:
}
const OUString& GetTrueString() const { return GetSpecialKeyword( NF_KEY_TRUE ); }
const OUString& GetFalseString() const { return GetSpecialKeyword( NF_KEY_FALSE ); }
- const OUString& GetColorString() const { return GetKeywords()[NF_KEY_COLOR]; }
const OUString& GetRedString() const { return GetKeywords()[NF_KEY_RED]; }
const OUString& GetBooleanString() const { return GetKeywords()[NF_KEY_BOOLEAN]; }
const OUString& GetErrorString() const { return sErrStr; }