Kaydet (Commit) be3ee9c8 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: update unused code list

üst 16cd9748
......@@ -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()
);
}
......
......@@ -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;
......
......@@ -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;
......
......@@ -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 )
......
......@@ -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
......
......@@ -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
......
......@@ -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;
......
......@@ -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() ) );
......
......@@ -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&)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment