summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-17 13:08:16 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-20 06:33:44 +0000
commit9f4f237a3834e5d58a87296424db5428f68d1550 (patch)
tree9e3e2fa55dc1a4d673d4c12e2af297bf32140204 /svl
parentfcdddbd30a8b5cf6a5cc4d2ff28b7d4a20f8ec6b (diff)
loplugin:unusedmethods svl
Change-Id: If86cc43fda4d138cf7f678d81fa2b35f68f3c03b Reviewed-on: https://gerrit.libreoffice.org/17162 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/cenumitm.cxx8
-rw-r--r--svl/source/items/cintitem.cxx49
-rw-r--r--svl/source/items/custritm.cxx11
-rw-r--r--svl/source/items/int64item.cxx13
-rw-r--r--svl/source/items/intitem.cxx12
-rw-r--r--svl/source/items/poolitem.cxx6
-rw-r--r--svl/source/items/visitem.cxx8
7 files changed, 0 insertions, 107 deletions
diff --git a/svl/source/items/cenumitm.cxx b/svl/source/items/cenumitm.cxx
index a5525bedd27d..d7e88a905d99 100644
--- a/svl/source/items/cenumitm.cxx
+++ b/svl/source/items/cenumitm.cxx
@@ -165,14 +165,6 @@ bool SfxBoolItem::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int SfxBoolItem::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(rWith.ISA(SfxBoolItem), "SfxBoolItem::Compare(): Bad type");
- return (m_bValue == static_cast<SfxBoolItem const*>(&rWith)->m_bValue) ?
- 0 : m_bValue ? -1 : 1;
-}
-
-// virtual
bool SfxBoolItem::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,
diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx
index 0fde0d94003e..24fb8c755ca6 100644
--- a/svl/source/items/cintitem.cxx
+++ b/svl/source/items/cintitem.cxx
@@ -33,17 +33,6 @@ bool CntByteItem::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int CntByteItem::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(rWith.ISA(CntByteItem), "CntByteItem::Compare(): Bad type");
- return (static_cast< const CntByteItem * >(&rWith))->m_nValue < m_nValue ?
- -1 :
- (static_cast< const CntByteItem * >(&rWith))->m_nValue
- == m_nValue ?
- 0 : 1;
-}
-
-// virtual
bool CntByteItem::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,
@@ -116,19 +105,6 @@ bool CntUInt16Item::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int CntUInt16Item::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(rWith.ISA(CntUInt16Item),
- "CntUInt16Item::Compare(): Bad type");
- return (static_cast< const CntUInt16Item * >(&rWith))->m_nValue
- < m_nValue ?
- -1 :
- (static_cast< const CntUInt16Item * >(&rWith))->m_nValue
- == m_nValue ?
- 0 : 1;
-}
-
-// virtual
bool CntUInt16Item::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,
@@ -200,18 +176,6 @@ bool CntInt32Item::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int CntInt32Item::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(rWith.ISA(CntInt32Item), "CntInt32Item::Compare(): Bad type");
- return (static_cast< const CntInt32Item * >(&rWith))->m_nValue
- < m_nValue ?
- -1 :
- (static_cast< const CntInt32Item * >(&rWith))->m_nValue
- == m_nValue ?
- 0 : 1;
-}
-
-// virtual
bool CntInt32Item::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,
@@ -282,19 +246,6 @@ bool CntUInt32Item::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int CntUInt32Item::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(rWith.ISA(CntUInt32Item),
- "CntUInt32Item::operator ==(): Bad type");
- return (static_cast< const CntUInt32Item * >(&rWith))->m_nValue
- < m_nValue ?
- -1 :
- (static_cast< const CntUInt32Item * >(&rWith))->m_nValue
- == m_nValue ?
- 0 : 1;
-}
-
-// virtual
bool CntUInt32Item::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,
diff --git a/svl/source/items/custritm.cxx b/svl/source/items/custritm.cxx
index 2ed6d6a4ba94..1182ae576adc 100644
--- a/svl/source/items/custritm.cxx
+++ b/svl/source/items/custritm.cxx
@@ -37,17 +37,6 @@ bool CntUnencodedStringItem::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int CntUnencodedStringItem::Compare(SfxPoolItem const & rWith) const
-{
- OSL_FAIL("CntUnencodedStringItem::Compare(): No international");
- DBG_ASSERT(rWith.ISA(CntUnencodedStringItem),
- "CntUnencodedStringItem::Compare(): Bad type");
- sal_Int32 nCmp = m_aValue.compareTo(
- static_cast< CntUnencodedStringItem const * >(&rWith)->m_aValue);
- return (nCmp == 0) ? 0 : (nCmp < 0) ? -1 : 1;
-}
-
-// 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 f884106aa3db..7875690b2c2f 100644
--- a/svl/source/items/int64item.cxx
+++ b/svl/source/items/int64item.cxx
@@ -33,19 +33,6 @@ bool SfxInt64Item::operator== ( const SfxPoolItem& rItem ) const
return mnValue == static_cast<const SfxInt64Item&>(rItem).mnValue;
}
-int SfxInt64Item::Compare( const SfxPoolItem& r ) const
-{
- sal_Int64 nOther = static_cast<const SfxInt64Item&>(r).mnValue;
-
- if (mnValue < nOther)
- return -1;
-
- if (mnValue > nOther)
- return 1;
-
- return 0;
-}
-
bool SfxInt64Item::GetPresentation(
SfxItemPresentation, SfxMapUnit, SfxMapUnit, OUString& rText,
const IntlWrapper* /*pIntlWrapper*/ ) const
diff --git a/svl/source/items/intitem.cxx b/svl/source/items/intitem.cxx
index e596d4a5a8f9..735648e787dd 100644
--- a/svl/source/items/intitem.cxx
+++ b/svl/source/items/intitem.cxx
@@ -59,18 +59,6 @@ bool SfxInt16Item::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int SfxInt16Item::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(SfxPoolItem::operator ==(rWith), "unequal type");
- return (static_cast< const SfxInt16Item * >(&rWith))->m_nValue
- < m_nValue ?
- -1 :
- (static_cast< const SfxInt16Item * >(&rWith))->m_nValue
- == m_nValue ?
- 0 : 1;
-}
-
-// virtual
bool SfxInt16Item::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,
diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx
index ef6c7fe61ba3..f55d7a2712b1 100644
--- a/svl/source/items/poolitem.cxx
+++ b/svl/source/items/poolitem.cxx
@@ -123,12 +123,6 @@ SfxPoolItem::~SfxPoolItem()
}
-int SfxPoolItem::Compare( const SfxPoolItem& ) const
-{
- return 0;
-}
-
-
bool SfxPoolItem::operator==( const SfxPoolItem& rCmp ) const
{
return rCmp.Type() == Type();
diff --git a/svl/source/items/visitem.cxx b/svl/source/items/visitem.cxx
index a8a92cd80487..a73f5b00ed69 100644
--- a/svl/source/items/visitem.cxx
+++ b/svl/source/items/visitem.cxx
@@ -41,14 +41,6 @@ bool SfxVisibilityItem::operator ==(const SfxPoolItem & rItem) const
}
// virtual
-int SfxVisibilityItem::Compare(const SfxPoolItem & rWith) const
-{
- DBG_ASSERT(rWith.ISA(SfxVisibilityItem), "SfxVisibilityItem::Compare(): Bad type");
- return m_nValue.bVisible == static_cast< SfxVisibilityItem const * >(&rWith)->m_nValue.bVisible ?
- 0 : m_nValue.bVisible ? -1 : 1;
-}
-
-// virtual
bool SfxVisibilityItem::GetPresentation(SfxItemPresentation,
SfxMapUnit, SfxMapUnit,
OUString & rText,