diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-02 16:15:51 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-08 06:08:14 +0000 |
commit | b14224fe97b8a44232c9c1401d3a49771f46582e (patch) | |
tree | 8f9cf31cf4b51a0edbb43022499a6acd17d0945d /include/tools | |
parent | c474e610e453d0f38f7cc6cb9559ad7e7b5d69ca (diff) |
loplugin:unusedmethods
using an idea from dtardon:
<dtardon> noelgrandin, hi. could you try to run the unusedmethods clang
plugin with "make build-nocheck"? that would catch functions that are
only used in tests. e.g., i just removed the whole o3tl::range class,
which has not been used in many years, but htere was a test for it...
<noelgrandin> dtardon, interesting idea! Sure, I can do that.
Change-Id: I5653953a426a2186a1e43017212d87ffce520387
Reviewed-on: https://gerrit.libreoffice.org/22041
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/date.hxx | 2 | ||||
-rw-r--r-- | include/tools/inetmime.hxx | 22 | ||||
-rw-r--r-- | include/tools/multisel.hxx | 1 | ||||
-rw-r--r-- | include/tools/poly.hxx | 4 | ||||
-rw-r--r-- | include/tools/stream.hxx | 7 | ||||
-rw-r--r-- | include/tools/svborder.hxx | 9 | ||||
-rw-r--r-- | include/tools/urlobj.hxx | 2 |
7 files changed, 0 insertions, 47 deletions
diff --git a/include/tools/date.hxx b/include/tools/date.hxx index f450c7b7bf23..1dfb13098028 100644 --- a/include/tools/date.hxx +++ b/include/tools/date.hxx @@ -168,8 +168,6 @@ public: Date& operator -=( long nDays ); Date& operator ++(); Date& operator --(); - Date operator ++( int ); - Date operator --( int ); TOOLS_DLLPUBLIC friend Date operator +( const Date& rDate, long nDays ); TOOLS_DLLPUBLIC friend Date operator -( const Date& rDate, long nDays ); diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx index 1bc2404025c1..3b737c889622 100644 --- a/include/tools/inetmime.hxx +++ b/include/tools/inetmime.hxx @@ -302,28 +302,6 @@ public: */ inline INetMIMEOutputSink & operator <<(const sal_Char * pOctets); - /** Write a sequence of octets. - - @param rOctets A OString, interpreted as a sequence of octets. - - @return This instance. - */ - INetMIMEOutputSink & operator <<(const OString& rOctets) - { - writeSequence(rOctets.getStr(), rOctets.getStr() + rOctets.getLength()); - return *this; - } - - /** Call a manipulator function. - - @param pManipulator A manipulator function. - - @return Whatever the manipulator function returns. - */ - INetMIMEOutputSink & - operator <<(INetMIMEOutputSink & (* pManipulator)(INetMIMEOutputSink &)) - { return pManipulator(*this); } - OString takeBuffer() { return m_aBuffer.makeStringAndClear(); diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx index 633f50714d1a..1731b4925f6a 100644 --- a/include/tools/multisel.hxx +++ b/include/tools/multisel.hxx @@ -54,7 +54,6 @@ public: ~MultiSelection(); MultiSelection& operator= ( const MultiSelection& rOrig ); - bool operator== ( MultiSelection& rOrig ); void SelectAll( bool bSelect = true ); bool Select( long nIndex, bool bSelect = true ); diff --git a/include/tools/poly.hxx b/include/tools/poly.hxx index a956b200651a..e4a842107b08 100644 --- a/include/tools/poly.hxx +++ b/include/tools/poly.hxx @@ -161,8 +161,6 @@ public: tools::Polygon& operator=( const tools::Polygon& rPoly ); bool operator==( const tools::Polygon& rPoly ) const; - bool operator!=( const tools::Polygon& rPoly ) const - { return !(Polygon::operator==( rPoly )); } bool IsEqual( const tools::Polygon& rPoly ) const; // streaming a Polygon does ignore PolyFlags, so use the Write Or Read @@ -253,8 +251,6 @@ public: tools::PolyPolygon& operator=( const tools::PolyPolygon& rPolyPoly ); bool operator==( const tools::PolyPolygon& rPolyPoly ) const; - bool operator!=( const tools::PolyPolygon& rPolyPoly ) const - { return !(PolyPolygon::operator==( rPolyPoly )); } TOOLS_DLLPUBLIC friend SvStream& ReadPolyPolygon( SvStream& rIStream, tools::PolyPolygon& rPolyPoly ); TOOLS_DLLPUBLIC friend SvStream& WritePolyPolygon( SvStream& rOStream, const tools::PolyPolygon& rPolyPoly ); diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index 16b46fb72f90..aba3304ea83f 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -555,13 +555,6 @@ inline OString read_uInt8_lenPrefixed_uInt8s_ToOString(SvStream& rStrm) return read_uInt8s_ToOString(rStrm, nUnits); } -inline OString read_uInt32_lenPrefixed_uInt8s_ToOString(SvStream& rStrm) -{ - sal_uInt32 nUnits = 0; - rStrm.ReadUInt32( nUnits ); - return read_uInt8s_ToOString(rStrm, nUnits); -} - /// Attempt to read a pascal-style length (of type prefix) prefixed sequence of /// 8bit units to an OUString inline OUString read_uInt16_lenPrefixed_uInt8s_ToOUString(SvStream& rStrm, diff --git a/include/tools/svborder.hxx b/include/tools/svborder.hxx index e30853d702c1..c919d8cd76ca 100644 --- a/include/tools/svborder.hxx +++ b/include/tools/svborder.hxx @@ -67,14 +67,6 @@ public: Bottom() += rBorder.Bottom(); return *this; } - SvBorder & operator -= ( const SvBorder & rBorder ) - { - Left() -= rBorder.Left(); - Top() -= rBorder.Top(); - Right() -= rBorder.Right(); - Bottom() -= rBorder.Bottom(); - return *this; - } long & Top() { return nTop; } long & Right() { return nRight; } long & Bottom() { return nBottom; } @@ -86,7 +78,6 @@ public: }; TOOLS_DLLPUBLIC Rectangle & operator += ( Rectangle & rRect, const SvBorder & rBorder ); -TOOLS_DLLPUBLIC Rectangle & operator -= ( Rectangle & rRect, const SvBorder & rBorder ); #endif diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx index cd5bf231d134..3985942857ea 100644 --- a/include/tools/urlobj.hxx +++ b/include/tools/urlobj.hxx @@ -189,8 +189,6 @@ public: inline bool operator !=(INetURLObject const & rObject) const { return !(*this == rObject); } - bool operator <(INetURLObject const & rObject) const; - // Strict Parsing: inline explicit INetURLObject( |