summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-29 12:40:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-30 05:58:41 +0000
commitc7e8f21a538c409abe70b90d7bba38386e90a876 (patch)
treec5d1e79d88c5728c29fa49106b0e7c40e0f5f01d /sc
parentefbde08e2a9930edb4637824d9d3a768873314a8 (diff)
loplugin:unusedmethods
Change-Id: Id3b5cd75d4357336ed592ef11a3f34d209f8e95f Reviewed-on: https://gerrit.libreoffice.org/19636 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/bigrange.hxx15
-rw-r--r--sc/source/filter/excel/xlformula.cxx8
-rw-r--r--sc/source/filter/excel/xltools.cxx7
-rw-r--r--sc/source/filter/inc/addressconverter.hxx10
-rw-r--r--sc/source/filter/inc/htmlpars.hxx10
-rw-r--r--sc/source/filter/inc/xladdress.hxx10
-rw-r--r--sc/source/filter/inc/xlescher.hxx10
-rw-r--r--sc/source/filter/inc/xlformula.hxx2
-rw-r--r--sc/source/filter/inc/xltools.hxx2
-rw-r--r--sc/source/ui/inc/selectionstate.hxx2
-rw-r--r--sc/source/ui/view/selectionstate.cxx22
11 files changed, 0 insertions, 98 deletions
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx
index 2a3fbae1001d..c677df19aa4a 100644
--- a/sc/inc/bigrange.hxx
+++ b/sc/inc/bigrange.hxx
@@ -71,9 +71,6 @@ public:
{ return nCol == r.nCol && nRow == r.nRow && nTab == r.nTab; }
bool operator!=( const ScBigAddress& r ) const
{ return !operator==( r ); }
-
- friend inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr );
- friend inline SvStream& ReadScBigAddress( SvStream& rStream, ScBigAddress& rAdr );
};
inline void ScBigAddress::PutInOrder( ScBigAddress& r )
@@ -129,18 +126,6 @@ inline ScAddress ScBigAddress::MakeAddress() const
return ScAddress( nColA, nRowA, nTabA );
}
-inline SvStream& WriteScBigAddress( SvStream& rStream, const ScBigAddress& rAdr )
-{
- rStream.WriteInt32( rAdr.nCol ).WriteInt32( rAdr.nRow ).WriteInt32( rAdr.nTab );
- return rStream;
-}
-
-inline SvStream& ReadScBigAddress( SvStream& rStream, ScBigAddress& rAdr )
-{
- rStream.ReadInt32( rAdr.nCol ).ReadInt32( rAdr.nRow ).ReadInt32( rAdr.nTab );
- return rStream;
-}
-
class ScBigRange
{
public:
diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx
index 90429333fac3..2248725a031a 100644
--- a/sc/source/filter/excel/xlformula.cxx
+++ b/sc/source/filter/excel/xlformula.cxx
@@ -731,14 +731,6 @@ XclImpStream& operator>>( XclImpStream& rStrm, XclTokenArray& rTokArr )
return rStrm;
}
-XclImpStream& operator>>( XclImpStream& rStrm, XclTokenArrayRef& rxTokArr )
-{
- if( !rxTokArr )
- rxTokArr.reset( new XclTokenArray );
- rxTokArr->Read( rStrm );
- return rStrm;
-}
-
XclExpStream& operator<<( XclExpStream& rStrm, const XclTokenArray& rTokArr )
{
rTokArr.Write( rStrm );
diff --git a/sc/source/filter/excel/xltools.cxx b/sc/source/filter/excel/xltools.cxx
index ddf0e615afe9..f2a786cd0573 100644
--- a/sc/source/filter/excel/xltools.cxx
+++ b/sc/source/filter/excel/xltools.cxx
@@ -68,13 +68,6 @@ bool operator==( const XclGuid& rCmp1, const XclGuid& rCmp2 )
return ::std::equal( rCmp1.mpnData, STATIC_ARRAY_END( rCmp1.mpnData ), rCmp2.mpnData );
}
-bool operator<( const XclGuid& rCmp1, const XclGuid& rCmp2 )
-{
- return ::std::lexicographical_compare(
- rCmp1.mpnData, STATIC_ARRAY_END( rCmp1.mpnData ),
- rCmp2.mpnData, STATIC_ARRAY_END( rCmp2.mpnData ) );
-}
-
XclImpStream& operator>>( XclImpStream& rStrm, XclGuid& rGuid )
{
rStrm.Read( rGuid.mpnData, 16 ); // mpnData always in little endian
diff --git a/sc/source/filter/inc/addressconverter.hxx b/sc/source/filter/inc/addressconverter.hxx
index d05c33db5159..0186b11fb2ce 100644
--- a/sc/source/filter/inc/addressconverter.hxx
+++ b/sc/source/filter/inc/addressconverter.hxx
@@ -138,16 +138,6 @@ struct BinRange
void read( BiffInputStream& rStrm, bool bCol16Bit = true, bool bRow32Bit = false );
};
-inline bool operator==( const BinRange& rL, const BinRange& rR )
-{
- return (rL.maFirst == rR.maFirst) && (rL.maLast == rR.maLast);
-}
-
-inline bool operator<( const BinRange& rL, const BinRange& rR )
-{
- return (rL.maFirst < rR.maFirst) || ((rL.maFirst == rR.maFirst) && (rL.maLast < rR.maLast));
-}
-
inline SequenceInputStream& operator>>( SequenceInputStream& rStrm, BinRange& orRange )
{
orRange.read( rStrm );
diff --git a/sc/source/filter/inc/htmlpars.hxx b/sc/source/filter/inc/htmlpars.hxx
index 6cc2bc82ff56..eb00077533e4 100644
--- a/sc/source/filter/inc/htmlpars.hxx
+++ b/sc/source/filter/inc/htmlpars.hxx
@@ -254,11 +254,6 @@ struct ScHTMLPos
{ return ScAddress( mnCol, mnRow, 0 ); }
};
-inline bool operator==( const ScHTMLPos& rPos1, const ScHTMLPos& rPos2 )
-{
- return (rPos1.mnRow == rPos2.mnRow) && (rPos1.mnCol == rPos2.mnCol);
-}
-
inline bool operator<( const ScHTMLPos& rPos1, const ScHTMLPos& rPos2 )
{
return (rPos1.mnRow < rPos2.mnRow) || ((rPos1.mnRow == rPos2.mnRow) && (rPos1.mnCol < rPos2.mnCol));
@@ -277,11 +272,6 @@ struct ScHTMLSize
{ mnCols = nCols; mnRows = nRows; }
};
-inline bool operator==( const ScHTMLSize& rSize1, const ScHTMLSize& rSize2 )
-{
- return (rSize1.mnRows == rSize2.mnRows) && (rSize1.mnCols == rSize2.mnCols);
-}
-
/** A single entry containing a line of text or representing a table. */
struct ScHTMLEntry : public ScEEParseEntry
{
diff --git a/sc/source/filter/inc/xladdress.hxx b/sc/source/filter/inc/xladdress.hxx
index 68b386c9f307..12672367ccbf 100644
--- a/sc/source/filter/inc/xladdress.hxx
+++ b/sc/source/filter/inc/xladdress.hxx
@@ -88,16 +88,6 @@ struct XclRange
void Write( XclExpStream& rStrm, bool bCol16Bit = true ) const;
};
-inline bool operator==( const XclRange& rL, const XclRange& rR )
-{
- return (rL.maFirst == rR.maFirst) && (rL.maLast == rR.maLast);
-}
-
-inline bool operator<( const XclRange& rL, const XclRange& rR )
-{
- return (rL.maFirst < rR.maFirst) || ((rL.maFirst == rR.maFirst) && (rL.maLast < rR.maLast));
-}
-
inline XclImpStream& operator>>( XclImpStream& rStrm, XclRange& rXclRange )
{
rXclRange.Read( rStrm );
diff --git a/sc/source/filter/inc/xlescher.hxx b/sc/source/filter/inc/xlescher.hxx
index eacc4ff243d8..9efb0697cc95 100644
--- a/sc/source/filter/inc/xlescher.hxx
+++ b/sc/source/filter/inc/xlescher.hxx
@@ -342,16 +342,6 @@ inline XclImpStream& operator>>( XclImpStream& rStrm, XclObjAnchor& rAnchor )
return rStrm;
}
-template< typename StreamType >
-StreamType& operator<<( StreamType& rStrm, const XclObjAnchor& rAnchor )
-{
- return rStrm
- << rAnchor.maFirst.mnCol << rAnchor.mnLX
- << static_cast<sal_uInt16>(rAnchor.maFirst.mnRow) << static_cast<sal_uInt16>(rAnchor.mnTY)
- << rAnchor.maLast.mnCol << rAnchor.mnRX
- << static_cast<sal_uInt16>(rAnchor.maLast.mnRow) << static_cast<sal_uInt16>(rAnchor.mnBY);
-}
-
inline SvStream& WriteXclObjAnchor( SvStream& rStrm, const XclObjAnchor& rAnchor )
{
return rStrm
diff --git a/sc/source/filter/inc/xlformula.hxx b/sc/source/filter/inc/xlformula.hxx
index d93c2ebb50ed..4283ad16b17d 100644
--- a/sc/source/filter/inc/xlformula.hxx
+++ b/sc/source/filter/inc/xlformula.hxx
@@ -418,8 +418,6 @@ typedef std::shared_ptr< XclTokenArray > XclTokenArrayRef;
/** Calls the Read() function at the passed token array. */
XclImpStream& operator>>( XclImpStream& rStrm, XclTokenArray& rTokArr );
-/** Calls the Read() function at the passed token array. */
-XclImpStream& operator>>( XclImpStream& rStrm, XclTokenArrayRef& rxTokArr );
/** Calls the Write() function at the passed token array. */
XclExpStream& operator<<( XclExpStream& rStrm, const XclTokenArray& rTokArr );
/** Calls the Write() function at the passed token array. */
diff --git a/sc/source/filter/inc/xltools.hxx b/sc/source/filter/inc/xltools.hxx
index 23aa9bf17c6d..4a067cfad69a 100644
--- a/sc/source/filter/inc/xltools.hxx
+++ b/sc/source/filter/inc/xltools.hxx
@@ -69,8 +69,6 @@ struct XclGuid
};
bool operator==( const XclGuid& rCmp1, const XclGuid& rCmp2 );
-inline bool operator!=( const XclGuid& rCmp1, const XclGuid& rCmp2 ) { return !(rCmp1 == rCmp2); }
-bool operator<( const XclGuid& rCmp1, const XclGuid& rCmp2 );
XclImpStream& operator>>( XclImpStream& rStrm, XclGuid& rGuid );
XclExpStream& operator<<( XclExpStream& rStrm, const XclGuid& rGuid );
diff --git a/sc/source/ui/inc/selectionstate.hxx b/sc/source/ui/inc/selectionstate.hxx
index 2de2433e7828..4d3731399805 100644
--- a/sc/source/ui/inc/selectionstate.hxx
+++ b/sc/source/ui/inc/selectionstate.hxx
@@ -58,8 +58,6 @@ private:
ESelection maEditSel; /// Selection in edit mode.
};
-bool operator==( const ScSelectionState& rL, const ScSelectionState& rR );
-
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/view/selectionstate.cxx b/sc/source/ui/view/selectionstate.cxx
index d45969fb200b..5c49bfe50cd8 100644
--- a/sc/source/ui/view/selectionstate.cxx
+++ b/sc/source/ui/view/selectionstate.cxx
@@ -52,26 +52,4 @@ ScSelectionState::ScSelectionState( ScViewData& rViewData ) :
}
}
-bool operator==( const ScSelectionState& rL, const ScSelectionState& rR )
-{
- bool bEqual = rL.GetSelectionType() == rR.GetSelectionType();
- if( bEqual ) switch( rL.GetSelectionType() )
- {
- case SC_SELECTTYPE_EDITCELL:
- bEqual &= rL.GetEditSelection().IsEqual( rR.GetEditSelection() );
- // run through!
- case SC_SELECTTYPE_SHEET:
- bEqual &= rL.GetSheetSelection() == rR.GetSheetSelection();
- // run through!
- case SC_SELECTTYPE_NONE:
- bEqual &= rL.GetCellCursor() == rR.GetCellCursor();
- break;
- default:
- {
- // added to avoid warnings
- }
- }
- return bEqual;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */