diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-01 09:31:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-01 10:43:56 +0000 |
commit | 2eeef79b78242a89ef6901ba67b30f178d59027f (patch) | |
tree | b85607c7b7093f5055ffd069e3bb2603fc5ff3b7 | |
parent | 1431c95d19cde8b913d772c9a99c3ebd886e983a (diff) |
callcatcher: update list
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-text.cxx | 12 | ||||
-rw-r--r-- | sd/source/filter/eppt/text.hxx | 2 | ||||
-rw-r--r-- | sot/inc/sot/stg.hxx | 1 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 17 | ||||
-rw-r--r-- | svx/inc/svx/xexch.hxx | 1 | ||||
-rw-r--r-- | svx/source/xoutdev/xexch.cxx | 10 | ||||
-rw-r--r-- | tools/inc/tools/unqidx.hxx | 2 | ||||
-rw-r--r-- | tools/source/memtools/unqidx.cxx | 22 | ||||
-rwxr-xr-x | unusedcode.easy | 20 |
10 files changed, 6 insertions, 87 deletions
@@ -467,6 +467,12 @@ findunusedcode: | grep -v ^libwpg:: \ | grep -v ^lucene:: \ | grep -v ^salhelper:: \ + | grep -v ^WP1 \ + | grep -v ^WP3 \ + | grep -v ^WP42 \ + | grep -v ^WP6 \ + | grep -v ^WPG \ + | grep -v ^WPS \ > unusedcode.easy check: subsequentcheck diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx index b54acde52707..38485286f9aa 100644 --- a/sd/source/filter/eppt/pptx-text.cxx +++ b/sd/source/filter/eppt/pptx-text.cxx @@ -1297,18 +1297,6 @@ TextObj::~TextObj() delete mpImplTextObj; } -void TextObj::Write( SvStream* pStrm ) -{ - sal_uInt32 nSize, nPos = pStrm->Tell(); - *pStrm << (sal_uInt32)( EPP_TextCharsAtom << 16 ) << (sal_uInt32)0; - for ( void* pPtr = First(); pPtr; pPtr = Next() ) - ((ParagraphObj*)pPtr)->Write( pStrm ); - nSize = pStrm->Tell() - nPos; - pStrm->SeekRel( - ( (sal_Int32)nSize - 4 ) ); - *pStrm << (sal_uInt32)( nSize - 8 ); - pStrm->SeekRel( nSize - 8 ); -} - void TextObj::ImplCalculateTextPositions() { mpImplTextObj->mnTextSize = 0; diff --git a/sd/source/filter/eppt/text.hxx b/sd/source/filter/eppt/text.hxx index 58ddca9eeaee..aadd938ea13a 100644 --- a/sd/source/filter/eppt/text.hxx +++ b/sd/source/filter/eppt/text.hxx @@ -252,8 +252,6 @@ class TextObj TextObj( const TextObj& rTextObj ); ~TextObj(); - void Write( SvStream* pStrm ); - ParagraphObj* First(){ return (ParagraphObj*)mpImplTextObj->mpList->First(); }; ParagraphObj* Next(){ return(ParagraphObj*)mpImplTextObj->mpList->Next(); }; sal_uInt32 Count() const { return mpImplTextObj->mnTextSize; }; diff --git a/sot/inc/sot/stg.hxx b/sot/inc/sot/stg.hxx index cb447e3261b8..793ee0e41340 100644 --- a/sot/inc/sot/stg.hxx +++ b/sot/inc/sot/stg.hxx @@ -296,7 +296,6 @@ protected: ~UCBStorage(); public: static sal_Bool IsStorageFile( SvStream* ); - static sal_Bool IsStorageFile( const String& rName ); static sal_Bool IsDiskSpannedFile( SvStream* ); static String GetLinkedFile( SvStream& ); static String CreateLinkFile( const String& rName ); diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index e82d7b3dff32..4899aa01a441 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -3203,23 +3203,6 @@ sal_Bool UCBStorage::Equals( const BaseStorage& rStorage ) const return ((BaseStorage*)this) == &rStorage; } -sal_Bool UCBStorage::IsStorageFile( const String& rFileName ) -{ - rtl::OUString aFileURL = rFileName; - INetURLObject aObj( aFileURL ); - if ( aObj.GetProtocol() == INET_PROT_NOT_VALID ) - { - ::utl::LocalFileHelper::ConvertPhysicalNameToURL( rFileName, aFileURL ); - aObj.SetURL( aFileURL ); - aFileURL = aObj.GetMainURL( INetURLObject::NO_DECODE ); - } - - SvStream * pStm = ::utl::UcbStreamHelper::CreateStream( aFileURL, STREAM_STD_READ ); - sal_Bool bRet = UCBStorage::IsStorageFile( pStm ); - delete pStm; - return bRet; -} - sal_Bool UCBStorage::IsStorageFile( SvStream* pFile ) { if ( !pFile ) diff --git a/svx/inc/svx/xexch.hxx b/svx/inc/svx/xexch.hxx index cb31e44c7a99..37f286dec509 100644 --- a/svx/inc/svx/xexch.hxx +++ b/svx/inc/svx/xexch.hxx @@ -60,7 +60,6 @@ public: SVX_DLLPUBLIC friend SvStream& operator<<( SvStream& rOStm, const XFillExchangeData& rXFillExchangeData ); SVX_DLLPUBLIC friend SvStream& operator>>( SvStream& rIStm, XFillExchangeData& rXFillExchangeData ); - static sal_uLong RegisterClipboardFormatName(); XFillAttrSetItem* GetXFillAttrSetItem() { return pXFillAttrSetItem; } }; diff --git a/svx/source/xoutdev/xexch.cxx b/svx/source/xoutdev/xexch.cxx index c2927502e0d3..61c61bb09298 100644 --- a/svx/source/xoutdev/xexch.cxx +++ b/svx/source/xoutdev/xexch.cxx @@ -78,16 +78,6 @@ XFillExchangeData::~XFillExchangeData() delete pXFillAttrSetItem; } -/************************************************************************* -|* -|* -|* -*************************************************************************/ -sal_uIntPtr XFillExchangeData::RegisterClipboardFormatName() -{ - return( SOT_FORMATSTR_ID_XFA ); -} - /****************************************************************************** |* |* Binaer-Export (z.Z. ohne Versionsverwaltung, da nicht persistent!) diff --git a/tools/inc/tools/unqidx.hxx b/tools/inc/tools/unqidx.hxx index 1f806f9e31b1..17d9ecf0aaca 100644 --- a/tools/inc/tools/unqidx.hxx +++ b/tools/inc/tools/unqidx.hxx @@ -66,7 +66,6 @@ public: sal_uIntPtr GetCurIndex() const; sal_uIntPtr GetIndex( const void* p ) const; - sal_Bool IsIndexValid( sal_uIntPtr nIndex ) const; void* Seek( void* p ); void* First(); @@ -104,7 +103,6 @@ public: \ using UniqueIndex::Clear; \ using UniqueIndex::Count; \ using UniqueIndex::GetCurIndex; \ - using UniqueIndex::IsIndexValid; \ using UniqueIndex::GetStartIndex; \ using UniqueIndex::GetCurMaxIndex; \ \ diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx index 64e0b390d2a5..38cf2a9bd936 100644 --- a/tools/source/memtools/unqidx.cxx +++ b/tools/source/memtools/unqidx.cxx @@ -195,28 +195,6 @@ sal_uIntPtr UniqueIndex::GetIndex( const void* p ) const /************************************************************************* |* -|* UniqueIndex::IsIndexValid() -|* -*************************************************************************/ - -sal_Bool UniqueIndex::IsIndexValid( sal_uIntPtr nIndex ) const -{ - // Ist Index zulaessig - if ( (nIndex >= nStartIndex) && - (nIndex < (Container::GetSize()+nStartIndex)) ) - { - // Index ist nur zulaessig, wenn Eintrag auch belegt ist - if ( Container::ImpGetObject( nIndex-nStartIndex ) ) - return sal_True; - else - return sal_False; - } - else - return sal_False; -} - -/************************************************************************* -|* |* UniqueIndex::Seek() |* *************************************************************************/ diff --git a/unusedcode.easy b/unusedcode.easy index 90cd3897892b..d51eed7dbf57 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -380,10 +380,8 @@ TaskBar::TaskBar(Window*, long) TaskStatusFieldItem::TaskStatusFieldItem() TempFile::IsValid() const TextEngine::GetLeftMargin() const -TextObj::Write(SvStream*) TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&) TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() -UCBStorage::IsStorageFile(String const&) UCBStream::UCBStream(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream>&) UnoComboBoxControl::getActionListeners() UnoComboBoxControl::getItemListeners() @@ -405,20 +403,6 @@ VbaFoundFilesEnum::SetFileList(com::sun::star::uno::Sequence<rtl::OUString>&) VbaFoundFilesEnum::VbaFoundFilesEnum() VclEventListeners2::~VclEventListeners2() ViewShell::getIDocumentFieldsAccess() const -WP1FixedLengthGroup::isGroupConsistent(WPXInputStream*, WPXEncryption*, unsigned char) -WP3ResourceFork::getResourcesByID(unsigned int) const -WP3ResourceFork::getResourcesByType(unsigned int) const -WP3StylesListener::insertCell() -WP3StylesListener::insertRow() -WP3SubDocument::WP3SubDocument(unsigned char*, unsigned int) -WP42SubDocument::WP42SubDocument(unsigned char*, unsigned int) -WP6SubDocument::WP6SubDocument(WPXInputStream*, WPXEncryption*, unsigned int) -WPGTextDataHandler::endSubDocument() -WPS8Parser::readText(WPXInputStream*, WPS8ContentListener*) -WPSContentListener::closeEndnote() -WPSContentListener::closeFootnote() -WPSContentListener::openEndnote() -WPSContentListener::openFootnote() WPXPropertyList::Iter::last() WPXPropertyListVector::Iter::last() WPXString::Iter::last() @@ -434,7 +418,6 @@ WinMtfOutput::SetFont(Font const&) Window::PostUserEvent(unsigned long&, unsigned long, void*) X11SalGraphics::SetMask(int&, int&, unsigned int&, unsigned int&, int&, int&, unsigned long) X509Certificate_NssImpl::getImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface>) -XFillExchangeData::RegisterClipboardFormatName() XMLElement::Equals(rtl::OUString) XMLEmbeddedObjectExportFilter::XMLEmbeddedObjectExportFilter() XMLErrors::AddRecord(int, com::sun::star::uno::Sequence<rtl::OUString> const&) @@ -559,7 +542,6 @@ binfilter::ByteString::SearchAndReplace(char const*, binfilter::ByteString const binfilter::ByteString::SearchAndReplaceAll(binfilter::ByteString const&, binfilter::ByteString const&) binfilter::ByteString::SearchAndReplaceAll(char const*, binfilter::ByteString const&) binfilter::ByteString::SearchAndReplaceAll(char, char) -binfilter::ByteString::SearchBackward(char, unsigned short) const binfilter::ByteString::SetChar(unsigned short, char) binfilter::ByteString::SetToken(unsigned short, char, binfilter::ByteString const&, unsigned short) binfilter::ByteString::ToUpperAscii() @@ -613,8 +595,6 @@ binfilter::ScConditionalFormats_Impl::Insert(binfilter::ScConditionalFormat* con binfilter::ScConditionalFormats_Impl::Insert(binfilter::ScConditionalFormats_Impl const*, unsigned short, unsigned short) binfilter::ScConditionalFormats_Impl::Remove(binfilter::ScConditionalFormat* const&, unsigned short) binfilter::ScConditionalFormats_Impl::Remove(unsigned short, unsigned short) -binfilter::ScMultipleWriteHeader::ScMultipleWriteHeader(SvStream&, unsigned int) -binfilter::ScMultipleWriteHeader::~ScMultipleWriteHeader() binfilter::ScMyContentAction::~ScMyContentAction() binfilter::ScMyDelAction::~ScMyDelAction() binfilter::ScMyMoveAction::~ScMyMoveAction() |