diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-12 09:45:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-12 09:46:23 +0100 |
commit | be3ee9c889f4240848a3f232f2b3009ea647fefc (patch) | |
tree | 32a46b1190957d19036052337329b2075c3a9aa0 | |
parent | 16cd97480d0681d37f86e89366e1f9964ec16ef8 (diff) |
callcatcher: update unused code list
-rw-r--r-- | connectivity/source/commontools/dbexception.cxx | 4 | ||||
-rw-r--r-- | oox/inc/oox/dump/dumperbase.hxx | 8 | ||||
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 28 | ||||
-rw-r--r-- | sc/source/filter/oox/workbookhelper.cxx | 8 | ||||
-rw-r--r-- | slideshow/source/engine/animationnodes/basenode.cxx | 8 | ||||
-rw-r--r-- | slideshow/source/engine/animationnodes/basenode.hxx | 1 | ||||
-rw-r--r-- | svtools/inc/svtools/scrwin.hxx | 1 | ||||
-rw-r--r-- | svtools/source/control/scrwin.cxx | 83 | ||||
-rwxr-xr-x | unusedcode.easy | 10 |
9 files changed, 7 insertions, 144 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx index b4e862fd9b9d..37fbb2a62180 100644 --- a/connectivity/source/commontools/dbexception.cxx +++ b/connectivity/source/commontools/dbexception.cxx @@ -437,11 +437,9 @@ void throwFunctionNotSupportedException( const sal_Char* _pAsciiFunctionName, co STR_UNSUPPORTED_FUNCTION, "$functionname$", ::rtl::OUString::createFromAscii( _pAsciiFunctionName ) ) ); - throw SQLException( + throwFunctionNotSupportedException( sError, _rxContext, - getStandardSQLState( SQL_FUNCTION_NOT_SUPPORTED ), - 0, _pNextException ? *_pNextException : Any() ); } diff --git a/oox/inc/oox/dump/dumperbase.hxx b/oox/inc/oox/dump/dumperbase.hxx index 10b1e11290e3..10995ef000af 100644 --- a/oox/inc/oox/dump/dumperbase.hxx +++ b/oox/inc/oox/dump/dumperbase.hxx @@ -380,9 +380,6 @@ public: static void appendAddrName( ::rtl::OUStringBuffer& rStr, sal_Unicode cPrefix, sal_Int32 nColRow, bool bRel ); static void appendAddress( ::rtl::OUStringBuffer& rStr, const Address& rPos ); - static void appendRange( ::rtl::OUStringBuffer& rStr, const Range& rRange ); - - static void appendAddress( ::rtl::OUStringBuffer& rStr, const TokenAddress& rPos, bool bR1C1 ); // encoded text output ---------------------------------------------------- @@ -1848,11 +1845,6 @@ protected: const ::rtl::OUString& rSysFileName, const String& rRecNames, const String& rSimpleRecs = EMPTY_STRING ); - void construct( - const OutputObjectBase& rParent, - const BinaryInputStreamRef& rxBaseStrm, - const String& rRecNames, - const String& rSimpleRecs = EMPTY_STRING ); virtual bool implStartRecord( BinaryInputStream& rBaseStrm, sal_Int64& ornRecPos, sal_Int64& ornRecId, sal_Int64& ornRecSize ); virtual bool implReadRecordHeader( BinaryInputStream& rBaseStrm, sal_Int64& ornRecId, sal_Int64& ornRecSize ) = 0; diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 62a6d4c5a3d2..d7cc27d6141d 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -504,27 +504,6 @@ void StringHelper::appendAddress( OUStringBuffer& rStr, const Address& rPos ) appendAddrRow( rStr, rPos.mnRow, true ); } -void StringHelper::appendRange( OUStringBuffer& rStr, const Range& rRange ) -{ - appendAddress( rStr, rRange.maFirst ); - rStr.append( OOX_DUMP_RANGESEP ); - appendAddress( rStr, rRange.maLast ); -} - -void StringHelper::appendAddress( OUStringBuffer& rStr, const TokenAddress& rPos, bool bR1C1 ) -{ - if( bR1C1 && (rPos.mbRelCol || rPos.mbRelRow) ) - { - appendAddrName( rStr, OOX_DUMP_R1C1ROW, rPos.mnRow, rPos.mbRelRow ); - appendAddrName( rStr, OOX_DUMP_R1C1COL, rPos.mnCol, rPos.mbRelCol ); - } - else - { - appendAddrCol( rStr, rPos.mnCol, rPos.mbRelCol ); - appendAddrRow( rStr, rPos.mnRow, rPos.mbRelRow ); - } -} - // encoded text output -------------------------------------------------------- void StringHelper::appendCChar( OUStringBuffer& rStr, sal_Unicode cChar, bool bPrefix ) @@ -2695,13 +2674,6 @@ void SequenceRecordObjectBase::construct( const ObjectBase& rParent, RecordObjectBase::construct( rParent, rxBaseStrm, rSysFileName, xRecStrm, rRecNames, rSimpleRecs ); } -void SequenceRecordObjectBase::construct( const OutputObjectBase& rParent, - const BinaryInputStreamRef& rxBaseStrm, const String& rRecNames, const String& rSimpleRecs ) -{ - BinaryInputStreamRef xRecStrm( new SequenceInputStream( *mxRecData ) ); - RecordObjectBase::construct( rParent, rxBaseStrm, xRecStrm, rRecNames, rSimpleRecs ); -} - bool SequenceRecordObjectBase::implStartRecord( BinaryInputStream& rBaseStrm, sal_Int64& ornRecPos, sal_Int64& ornRecId, sal_Int64& ornRecSize ) { bool bValid = true; diff --git a/sc/source/filter/oox/workbookhelper.cxx b/sc/source/filter/oox/workbookhelper.cxx index 627854ff72bb..5bdac51ea3b4 100644 --- a/sc/source/filter/oox/workbookhelper.cxx +++ b/sc/source/filter/oox/workbookhelper.cxx @@ -231,8 +231,6 @@ public: inline BiffType getBiff() const { return meBiff; } /** Returns the text encoding used to import/export byte strings. */ inline rtl_TextEncoding getTextEncoding() const { return meTextEnc; } - /** Sets the text encoding to import/export byte strings. */ - void setTextEncoding( rtl_TextEncoding eTextEnc ); /** Returns the codec helper that stores the encoder/decoder object. */ inline BiffCodecHelper& getCodecHelper() { return *mxCodecHelper; } @@ -503,12 +501,6 @@ Reference< XStyle > WorkbookGlobals::createStyleObject( OUString& orStyleName, b // BIFF specific -------------------------------------------------------------- -void WorkbookGlobals::setTextEncoding( rtl_TextEncoding eTextEnc ) -{ - if( eTextEnc != RTL_TEXTENCODING_DONTKNOW ) - meTextEnc = eTextEnc; -} - // private -------------------------------------------------------------------- void WorkbookGlobals::initialize( bool bWorkbookFile ) diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx index 8150f885f105..b4344137cfb2 100644 --- a/slideshow/source/engine/animationnodes/basenode.cxx +++ b/slideshow/source/engine/animationnodes/basenode.cxx @@ -748,14 +748,6 @@ const char* BaseNode::getDescription() const return "BaseNode"; } -void BaseNode::showTreeFromWithin() const -{ - // find root node - BaseNodeSharedPtr pCurrNode( mpSelf ); - while( pCurrNode->mpParent ) pCurrNode = pCurrNode->mpParent; - - pCurrNode->showState(); -} #endif } // namespace internal diff --git a/slideshow/source/engine/animationnodes/basenode.hxx b/slideshow/source/engine/animationnodes/basenode.hxx index eb0aef7cdf94..80d306d77ac4 100644 --- a/slideshow/source/engine/animationnodes/basenode.hxx +++ b/slideshow/source/engine/animationnodes/basenode.hxx @@ -112,7 +112,6 @@ public: #if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) virtual void showState() const; virtual const char* getDescription() const; - void showTreeFromWithin() const; #endif const ::boost::shared_ptr< BaseContainerNode >& getParentNode() const diff --git a/svtools/inc/svtools/scrwin.hxx b/svtools/inc/svtools/scrwin.hxx index f38ec0161464..152649dbced2 100644 --- a/svtools/inc/svtools/scrwin.hxx +++ b/svtools/inc/svtools/scrwin.hxx @@ -90,7 +90,6 @@ public: void SetTotalSize( const Size& rNewSize ); Size GetTotalSize() { return PixelToLogic( aTotPixSz ); } - sal_Bool MakeVisible( const Rectangle& rTarget, sal_Bool bSloppy = sal_False ); Rectangle GetVisibleArea() const; using Window::Scroll; diff --git a/svtools/source/control/scrwin.cxx b/svtools/source/control/scrwin.cxx index a60833b5a2fb..5363db7f7fc8 100644 --- a/svtools/source/control/scrwin.cxx +++ b/svtools/source/control/scrwin.cxx @@ -329,89 +329,6 @@ void ScrollableWindow::SetTotalSize( const Size& rNewSize ) //------------------------------------------------------------------- -sal_Bool ScrollableWindow::MakeVisible( const Rectangle& rTarget, sal_Bool bSloppy ) -{ - Rectangle aTarget; - Rectangle aTotRect( Point(0, 0), PixelToLogic( aTotPixSz ) ); - - if ( bSloppy ) - { - aTarget = rTarget; - - // at maximum to right border - if ( aTarget.Right() > aTotRect.Right() ) - { - long nDelta = aTarget.Right() - aTotRect.Right(); - aTarget.Left() -= nDelta; - aTarget.Right() -= nDelta; - - // too wide? - if ( aTarget.Left() < aTotRect.Left() ) - aTarget.Left() = aTotRect.Left(); - } - - // at maximum to bottom border - if ( aTarget.Bottom() > aTotRect.Bottom() ) - { - long nDelta = aTarget.Bottom() - aTotRect.Bottom(); - aTarget.Top() -= nDelta; - aTarget.Bottom() -= nDelta; - - // too high? - if ( aTarget.Top() < aTotRect.Top() ) - aTarget.Top() = aTotRect.Top(); - } - - // at maximum to left border - if ( aTarget.Left() < aTotRect.Left() ) - { - long nDelta = aTarget.Left() - aTotRect.Left(); - aTarget.Right() -= nDelta; - aTarget.Left() -= nDelta; - - // too wide? - if ( aTarget.Right() > aTotRect.Right() ) - aTarget.Right() = aTotRect.Right(); - } - - // at maximum to top border - if ( aTarget.Top() < aTotRect.Top() ) - { - long nDelta = aTarget.Top() - aTotRect.Top(); - aTarget.Bottom() -= nDelta; - aTarget.Top() -= nDelta; - - // too high? - if ( aTarget.Bottom() > aTotRect.Bottom() ) - aTarget.Bottom() = aTotRect.Bottom(); - } - } - else - aTarget = rTarget.GetIntersection( aTotRect ); - - // is the area already visible? - Rectangle aVisArea( GetVisibleArea() ); - if ( aVisArea.IsInside(rTarget) ) - return sal_True; - - // is there somewhat to scroll? - if ( aVisArea.TopLeft() != aTarget.TopLeft() ) - { - Rectangle aBox( aTarget.GetUnion(aVisArea) ); - long nDeltaX = ( aBox.Right() - aVisArea.Right() ) + - ( aBox.Left() - aVisArea.Left() ); - long nDeltaY = ( aBox.Top() - aVisArea.Top() ) + - ( aBox.Bottom() - aVisArea.Bottom() ); - Scroll( nDeltaX, nDeltaY ); - } - - // determine if the target is completely visible - return aVisArea.GetWidth() >= aTarget.GetWidth() && - aVisArea.GetHeight() >= aTarget.GetHeight(); -} - -//------------------------------------------------------------------- - Rectangle ScrollableWindow::GetVisibleArea() const { Point aTopLeft( PixelToLogic( Point() ) ); diff --git a/unusedcode.easy b/unusedcode.easy index acb0b6c7e445..ec1bfeb30ea9 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -66,6 +66,7 @@ ScConditionalFormats_Impl::Remove(ScConditionalFormat* const&, unsigned short) ScConditionalFormats_Impl::Remove(unsigned short, unsigned short) ScCsvControl::ScCsvControl(Window*, ScCsvLayoutData const&, long) ScDBCollection::AnonDBs::erase(boost::void_ptr_iterator<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<void**, std::__cxx1998::vector<void*, std::allocator<void*> > >, std::__debug::vector<void*, std::allocator<void*> > >, ScDBData>) +ScDBCollection::AnonDBs::findByTable(short) const ScDBCollection::AnonDBs::size() const ScDPItemData::ScDPItemData(rtl::OUString const*) ScDPItemData::SetErrorString(rtl::OUString const&) @@ -105,7 +106,6 @@ ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() ScVbaFormat<ooo::vba::excel::XStyle>::getXServiceInfo() ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&) -ScrollableWindow::MakeVisible(Rectangle const&, unsigned char) SectReprArr::Insert(SectRepr* const&, unsigned short&) SectReprArr::Insert(SectRepr* const*, unsigned short) SectReprArr::Insert(SectReprArr const*, unsigned short, unsigned short) @@ -437,7 +437,6 @@ binfilter::ScriptTypePosInfos::Insert(binfilter::ScriptTypePosInfos const*, unsi binfilter::ScriptTypePosInfos::Replace(binfilter::ScriptTypePosInfo const&, unsigned short) binfilter::ScriptTypePosInfos::Replace(binfilter::ScriptTypePosInfo const*, unsigned short, unsigned short) binfilter::ScriptTypePosInfos::_ForEach(unsigned short, unsigned short, unsigned char (*)(binfilter::ScriptTypePosInfo const&, void*), void*) -binfilter::SdXMLFilter::SdXMLFilter(binfilter::SfxMedium&, binfilter::SdDrawDocShell&, unsigned char, binfilter::SdXMLFilterMode) binfilter::SdrUnoControlAccessArr::DeleteAndDestroy(unsigned short, unsigned short) binfilter::SdrUnoControlAccessArr::Insert(binfilter::SdrUnoControlAccess* const&, unsigned short&) binfilter::SdrUnoControlAccessArr::Insert(binfilter::SdrUnoControlAccess* const*, unsigned short) @@ -740,7 +739,6 @@ dbtools::SQLExceptionIteratorHelper::SQLExceptionIteratorHelper(com::sun::star:: dbtools::StatementComposer::getDisposeComposer() const dbtools::getComposedRowSetStatement(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet> const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&, unsigned char, unsigned char) dbtools::getConnection(rtl::OUString const&, rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory> const&) -dbtools::throwFunctionNotSupportedException(rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&, com::sun::star::uno::Any const&) dp_misc::TRACE(rtl::OString const&) dp_misc::writeConsoleError(rtl::OString const&) drawinglayer::attribute::SdrFormTextAttribute::getFormTextShdwTransp() const @@ -765,7 +763,7 @@ oox::PropertyMap::dump(com::sun::star::uno::Reference<com::sun::star::beans::XPr oox::core::BinaryFilterBase::BinaryFilterBase(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) oox::core::FilterBase::openSubStorage(rtl::OUString const&, bool) const oox::core::FilterBase::requestEncryptionData(comphelper::IDocPasswordVerifier&) const -oox::dump::SequenceRecordObjectBase::construct(oox::dump::OutputObjectBase const&, oox::dump::BinaryInputStreamRef const&, oox::dump::String const&, oox::dump::String const&) +oox::xls::Alignment::setBiff2Data(unsigned char) oox::xls::Alignment::setBiff3Data(unsigned short) oox::xls::Alignment::setBiff4Data(unsigned short) oox::xls::Alignment::setBiff5Data(unsigned short) @@ -777,6 +775,7 @@ oox::xls::BiffDrawingObjectBase::importObjBiff4(oox::xls::WorksheetHelper const& oox::xls::BiffDrawingObjectBase::importObjBiff5(oox::xls::WorksheetHelper const&, oox::xls::BiffInputStream&) oox::xls::BiffHelper::calcTextEncodingFromCodePage(unsigned short) oox::xls::BiffWorkbookContextBase::BiffWorkbookContextBase(oox::xls::WorkbookHelper const&) +oox::xls::Border::setBiff2Data(unsigned char) oox::xls::Border::setBiff3Data(unsigned int) oox::xls::Border::setBiff5Data(unsigned int, unsigned int) oox::xls::Border::setBiff8Data(unsigned int, unsigned int) @@ -792,6 +791,7 @@ oox::xls::ExternalLink::importExternalName(oox::xls::BiffInputStream&) oox::xls::ExternalLinkBuffer::importExternSheet(oox::xls::BiffInputStream&) oox::xls::ExternalLinkBuffer::importExternSheet8(oox::xls::BiffInputStream&) oox::xls::ExternalLinkBuffer::importExternalBook(oox::xls::BiffInputStream&) +oox::xls::Fill::setBiff2Data(unsigned char) oox::xls::Fill::setBiff3Data(unsigned short) oox::xls::Fill::setBiff5Data(unsigned int) oox::xls::Fill::setBiff8Data(unsigned int, unsigned short) @@ -809,6 +809,7 @@ oox::xls::PivotTable::importPTDefinition2(oox::xls::BiffInputStream&) oox::xls::PivotTable::importPTPageFields(oox::xls::BiffInputStream&) oox::xls::PivotTable::importPTRowColFields(oox::xls::BiffInputStream&) oox::xls::PivotTableField::importPTField(oox::xls::BiffInputStream&) +oox::xls::Protection::setBiff2Data(unsigned char) oox::xls::Protection::setBiff3Data(unsigned short) oox::xls::QueryTable::importQueryTable(oox::xls::BiffInputStream&) oox::xls::QueryTable::importQueryTableRefresh(oox::xls::BiffInputStream&) @@ -816,6 +817,7 @@ oox::xls::QueryTable::importQueryTableSettings(oox::xls::BiffInputStream&) oox::xls::RichString::importByteString(oox::xls::BiffInputStream&, unsigned short, int) oox::xls::RichString::importUniString(oox::xls::BiffInputStream&, int) oox::xls::Scenario::importScenario(oox::xls::BiffInputStream&) +oox::xls::Xf::setAllUsedFlags(bool) oox::xls::Xf::setBiffUsedFlags(unsigned char) psp::PrinterGfx::DrawBitmap(Rectangle const&, Rectangle const&, psp::PrinterBmp const&, psp::PrinterBmp const&) psp::PrinterGfx::DrawMask(Rectangle const&, Rectangle const&, psp::PrinterBmp const&, psp::PrinterColor&) |