From 34d71c5a08639f6255704be0d4a7df2b6cf6c13f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 27 Feb 2012 22:38:11 +0000 Subject: callcatcher: remove newly unused methods and update list --- filter/inc/filter/msfilter/msdffimp.hxx | 1 - filter/source/msfilter/msdffimp.cxx | 9 --------- package/inc/ZipPackageStream.hxx | 1 - package/source/zippackage/ZipPackageStream.cxx | 6 ------ svtools/source/control/scriptedtext.cxx | 7 ------- tools/inc/tools/pstm.hxx | 4 ---- tools/source/ref/pstm.cxx | 17 ----------------- unusedcode.easy | 7 ------- vcl/inc/vcl/button.hxx | 1 - vcl/source/control/button.cxx | 6 ------ 10 files changed, 59 deletions(-) diff --git a/filter/inc/filter/msfilter/msdffimp.hxx b/filter/inc/filter/msfilter/msdffimp.hxx index 34183c59e45c..c8edec044f6f 100644 --- a/filter/inc/filter/msfilter/msdffimp.hxx +++ b/filter/inc/filter/msfilter/msdffimp.hxx @@ -641,7 +641,6 @@ public: void Scale(sal_Int32& rVal) const; void Scale(Point& rPos) const; void Scale(Size& rSiz) const; - void Scale(Polygon& rPoly) const; void ScaleEmu(sal_Int32& rVal) const; sal_uInt32 ScalePt( sal_uInt32 nPt ) const; sal_Int32 ScalePoint( sal_Int32 nVal ) const; diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 713a99d86c9e..af17c92c0588 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -3265,15 +3265,6 @@ void SvxMSDffManager::Scale( Size& rSiz ) const } } -void SvxMSDffManager::Scale( Polygon& rPoly ) const -{ - if ( !bNeedMap ) - return; - sal_uInt16 nPointAnz = rPoly.GetSize(); - for ( sal_uInt16 nPointNum = 0; nPointNum < nPointAnz; nPointNum++ ) - Scale( rPoly[ nPointNum ] ); -} - void SvxMSDffManager::ScaleEmu( sal_Int32& rVal ) const { rVal = BigMulDiv( rVal, nEmuMul, nEmuDiv ); diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx index cb165af9ee97..a3dc3c0a98d0 100644 --- a/package/inc/ZipPackageStream.hxx +++ b/package/inc/ZipPackageStream.hxx @@ -94,7 +94,6 @@ public: void SetFromManifest( sal_Bool bValue ) { m_bFromManifest = bValue; } ::rtl::Reference< EncryptionData > GetEncryptionData( bool bWinEncoding = false ); - void SetBaseEncryptionData( const ::rtl::Reference< BaseEncryptionData >& xData ); ::com::sun::star::uno::Sequence< sal_Int8 > GetEncryptionKey( bool bWinEncoding = false ); diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index b5c0731ffb35..483759e7e16d 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -227,12 +227,6 @@ sal_Int32 ZipPackageStream::GetBlockSize() const return xResult; } -//-------------------------------------------------------------------------- -void ZipPackageStream::SetBaseEncryptionData( const ::rtl::Reference< BaseEncryptionData >& xData ) -{ - m_xBaseEncryptionData = xData; -} - //-------------------------------------------------------------------------- uno::Sequence< sal_Int8 > ZipPackageStream::GetEncryptionKey( bool bUseWinEncoding ) { diff --git a/svtools/source/control/scriptedtext.cxx b/svtools/source/control/scriptedtext.cxx index 9338c116eaf5..b3da1484939a 100644 --- a/svtools/source/control/scriptedtext.cxx +++ b/svtools/source/control/scriptedtext.cxx @@ -93,8 +93,6 @@ public: const OUString& _rText, const uno::Reference< i18n::XBreakIterator >& _xBreakIter ); - /** Returns the previously set text. */ - const OUString& GetText() const; /** Returns a size struct containing the width and height of the text in the current output device. */ const Size& GetTextSize() const; @@ -279,11 +277,6 @@ void SvtScriptedTextHelper_Impl::SetText( const OUString& _rText, const uno::Ref CalculateBreaks( _xBreakIter ); } -const OUString& SvtScriptedTextHelper_Impl::GetText() const -{ - return maText; -} - const Size& SvtScriptedTextHelper_Impl::GetTextSize() const { return maTextSize; diff --git a/tools/inc/tools/pstm.hxx b/tools/inc/tools/pstm.hxx index 125875cac8c4..6f1e8e9e98d9 100644 --- a/tools/inc/tools/pstm.hxx +++ b/tools/inc/tools/pstm.hxx @@ -202,10 +202,6 @@ class TOOLS_DLLPUBLIC SvPersistStream : public SvStream virtual sal_uIntPtr SeekPos( sal_uIntPtr nPos ); virtual void FlushData(); protected: - sal_uIntPtr GetCurMaxIndex( const SvPersistUIdx & ) const; - sal_uIntPtr GetCurMaxIndex() const - { return GetCurMaxIndex( aPUIdx ); } - void WriteObj( sal_uInt8 nHdr, SvPersistBase * pObj ); sal_uInt32 ReadObj( SvPersistBase * & rpObj, sal_Bool bRegister ); diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index 4956a6aa46f5..4c95a6fa6445 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -310,23 +310,6 @@ void SvPersistStream::FlushData() { } -/************************************************************************* -|* SvPersistStream::GetCurMaxIndex() -*************************************************************************/ -sal_uIntPtr SvPersistStream::GetCurMaxIndex( const SvPersistUIdx & rIdx ) const -{ - // const bekomme ich nicht den hoechsten Index - SvPersistUIdx * p = (SvPersistUIdx *)&rIdx; - // alten merken - sal_uIntPtr nCurIdx = p->GetCurIndex(); - p->Last(); - // Bereiche nicht ueberschneiden, deshalb nur groessere Indexe - sal_uIntPtr nMaxIdx = p->GetCurIndex(); - // wieder herstellen - p->Seek( nCurIdx ); - return nMaxIdx; -} - /************************************************************************* |* SvPersistStream::GetIndex() *************************************************************************/ diff --git a/unusedcode.easy b/unusedcode.easy index e6668ad34556..b7e4e9232670 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -1,5 +1,4 @@ (anonymous namespace)::writeU8(WPXBinaryData&, int) -Button::ImplGetSymbolAlign() const CertificateExtension_XmlSecImpl::setCertExtn(com::sun::star::uno::Sequence, com::sun::star::uno::Sequence, unsigned char) CharPosArray::Insert(CharPosArray const*, unsigned short, unsigned short, unsigned short) CharPosArray::Replace(int const&, unsigned short) @@ -466,13 +465,7 @@ XMLTextListAutoStylePool_Impl::Remove(XMLTextListAutoStylePoolEntry_Impl*) XMLVisAreaContext::XMLVisAreaContext(SvXMLImport&, unsigned short, rtl::OUString const&, com::sun::star::uno::Reference const&, Rectangle&, short) XWindowItem::XWindowItem(unsigned short, Window*) XWindowItem::XWindowItem(unsigned short, com::sun::star::uno::Reference&) -XclExpFontBuffer::Insert(ScPatternAttr const&, short, XclExpColorType, bool) XclExpPivotCache::GetFieldAcc(rtl::OUString const&) -XclExpString::SetFormats(std::__debug::vector > const&) -XclTokenArray::XclTokenArray(std::__debug::vector >&, bool) -XclTokenArrayIterator::Init() -XclXFBase::HasUsedFlags() const -ZipPackageStream::SetBaseEncryptionData(rtl::Reference const&) _CpyTabFrms::Insert(_CpyTabFrm const&, unsigned short&) _CpyTabFrms::Insert(_CpyTabFrm const*, unsigned short) _CpyTabFrms::Insert(_CpyTabFrms const*, unsigned short, unsigned short) diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx index 2cda341cf34f..89d4d8e3fff0 100644 --- a/vcl/inc/vcl/button.hxx +++ b/vcl/inc/vcl/button.hxx @@ -65,7 +65,6 @@ public: SAL_DLLPRIVATE void ImplSetFocusRect( const Rectangle &rFocusRect ); SAL_DLLPRIVATE const Rectangle& ImplGetFocusRect() const; SAL_DLLPRIVATE void ImplSetSymbolAlign( SymbolAlign eAlign ); - SAL_DLLPRIVATE SymbolAlign ImplGetSymbolAlign() const; SAL_DLLPRIVATE void ImplSetSmallSymbol( sal_Bool bSmall = sal_True ); SAL_DLLPRIVATE const Rectangle& ImplGetSymbolRect() const; SAL_DLLPRIVATE void ImplSetSymbolRect(const Rectangle&); diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 2b2f3832d93e..fd8d002bdccc 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -588,12 +588,6 @@ void Button::ImplSetSymbolAlign( SymbolAlign eAlign ) } } -// ----------------------------------------------------------------------- -SymbolAlign Button::ImplGetSymbolAlign() const -{ - return mpButtonData->meSymbolAlign; -} - // ----------------------------------------------------------------------- void Button::ImplSetSmallSymbol( sal_Bool bSmall ) { -- cgit