From 309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 29 Jan 2015 09:07:25 +0000 Subject: callcatcher: large newly detected unused methods post de-virtualization i.e lots now able to be detected after... commit b44cbb26efe1d0b0950b1e1613e131b506dc3876 Author: Noel Grandin Date: Tue Jan 20 12:38:10 2015 +0200 new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d --- tools/source/inet/inetmime.cxx | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'tools') diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index f39bc6228e77..d1ec8379489b 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -2850,25 +2850,6 @@ sal_Size INetMIMEOutputSink::writeSequence(const sal_Char * pSequence) return nLength; } -// virtual -void INetMIMEOutputSink::writeSequence(const sal_uInt32 * pBegin, - const sal_uInt32 * pEnd) -{ - DBG_ASSERT(pBegin && pBegin <= pEnd, - "INetMIMEOutputSink::writeSequence(): Bad sequence"); - - sal_Char * pBufferBegin = new sal_Char[pEnd - pBegin]; - sal_Char * pBufferEnd = pBufferBegin; - while (pBegin != pEnd) - { - DBG_ASSERT(*pBegin < 256, - "INetMIMEOutputSink::writeSequence(): Bad octet"); - *pBufferEnd++ = sal_Char(*pBegin++); - } - writeSequence(pBufferBegin, pBufferEnd); - delete[] pBufferBegin; -} - // virtual void INetMIMEOutputSink::writeSequence(const sal_Unicode * pBegin, const sal_Unicode * pEnd) -- cgit