diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-01 13:55:55 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-02 06:37:53 +0000 |
commit | d3d4b8691968810bb57bbd94dde39bb7be4be4da (patch) | |
tree | 0a2720842b799b0803d879a4ae3d021ff7777f4a /tools | |
parent | a28231b72b5a87dddffad82a34deac4e5bb76ed1 (diff) |
loplugin:unusedmethods tools
Change-Id: I45f5489233879126d4f9ee3d01db504d950bb597
Reviewed-on: https://gerrit.libreoffice.org/16656
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qa/cppunit/test_bigint.cxx | 8 | ||||
-rw-r--r-- | tools/source/inet/inetmime.cxx | 12 | ||||
-rw-r--r-- | tools/source/ref/pstm.cxx | 1 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 14 |
4 files changed, 2 insertions, 33 deletions
diff --git a/tools/qa/cppunit/test_bigint.cxx b/tools/qa/cppunit/test_bigint.cxx index 87ebed67bd1d..5b2be39c97fb 100644 --- a/tools/qa/cppunit/test_bigint.cxx +++ b/tools/qa/cppunit/test_bigint.cxx @@ -31,18 +31,13 @@ namespace tools class BigIntTest : public CppUnit::TestFixture { public: -#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG void testConstructionFromLongLong(); -#endif CPPUNIT_TEST_SUITE(BigIntTest); -#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG CPPUNIT_TEST(testConstructionFromLongLong); -#endif CPPUNIT_TEST_SUITE_END(); }; -#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG void BigIntTest::testConstructionFromLongLong() { // small positive number @@ -65,6 +60,7 @@ void BigIntTest::testConstructionFromLongLong() CPPUNIT_ASSERT_EQUAL(-42L, static_cast<long>(bi)); } +#if SAL_TYPES_SIZEOFLONG < SAL_TYPES_SIZEOFLONGLONG // positive number just fitting to long { BigInt bi(static_cast<sal_Int64>(std::numeric_limits<long>::max())); @@ -102,8 +98,8 @@ void BigIntTest::testConstructionFromLongLong() CPPUNIT_ASSERT(bi.IsNeg()); CPPUNIT_ASSERT(!bi.IsLong()); } -} #endif +} CPPUNIT_TEST_SUITE_REGISTRATION(BigIntTest); diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index d1ec8379489b..bfb06b814dc5 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -2869,12 +2869,6 @@ void INetMIMEOutputSink::writeSequence(const sal_Unicode * pBegin, delete[] pBufferBegin; } -// virtual -ErrCode INetMIMEOutputSink::getError() const -{ - return ERRCODE_NONE; -} - void INetMIMEOutputSink::writeLineEnd() { static const sal_Char aCRLF[2] = { 0x0D, 0x0A }; @@ -2894,12 +2888,6 @@ void INetMIMEStringOutputSink::writeSequence(const sal_Char * pBegin, m_aBuffer.append(pBegin, pEnd - pBegin); } -// virtual -ErrCode INetMIMEStringOutputSink::getError() const -{ - return ERRCODE_NONE; -} - // INetMIMEEncodedWordOutputSink static const sal_Char aEscape[128] diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index 0698c18b98e6..eec07612f3f3 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -60,7 +60,6 @@ SvPersistStream::SvPersistStream( SvClassManager & rMgr, SvStream * pStream, sal , aPUIdx( nStartIdxP ) , nStartIdx( nStartIdxP ) , pRefStm( NULL ) - , nFlags( 0 ) { DBG_ASSERT( nStartIdx != 0, "zero index not allowed" ); bIsWritable = true; diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 39b3d085e4b8..8cda7c3bd8d2 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -305,16 +305,6 @@ ErrCode SvAsyncLockBytes::FillAppend(const void * pBuffer, sal_Size nCount, return nError; } -// virtual -sal_uInt64 SvAsyncLockBytes::Seek(sal_uInt64 const nPos) -{ - // check if a truncated STREAM_SEEK_TO_END was passed - assert(nPos != SAL_MAX_UINT32); - if (nPos != STREAM_SEEK_TO_END) - m_nSize = nPos; - return m_nSize; -} - // class SvStream sal_Size SvStream::GetData( void* pData, sal_Size nSize ) @@ -2028,10 +2018,6 @@ bool SvScriptStream::good() const return mpHandle != NULL; } -void SvDataCopyStream::Assign( const SvDataCopyStream& ) -{ -} - //Create a OString of nLen bytes from rStream OString read_uInt8s_ToOString(SvStream& rStrm, sal_Size nLen) { |