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

callcatcher: remove some unused code

üst 54bc0305
...@@ -399,12 +399,10 @@ void OslStream::SetSize( sal_uIntPtr nSize ) ...@@ -399,12 +399,10 @@ void OslStream::SetSize( sal_uIntPtr nSize )
class UCBStream : public SvStream class UCBStream : public SvStream
{ {
Reference< XInputStream > xIS; Reference< XInputStream > xIS;
Reference< XOutputStream > xOS;
Reference< XStream > xS; Reference< XStream > xS;
Reference< XSeekable > xSeek; Reference< XSeekable > xSeek;
public: public:
UCBStream( Reference< XInputStream > & xIS ); UCBStream( Reference< XInputStream > & xIS );
UCBStream( Reference< XOutputStream > & xOS );
UCBStream( Reference< XStream > & xS ); UCBStream( Reference< XStream > & xS );
~UCBStream(); ~UCBStream();
virtual sal_uIntPtr GetData( void* pData, sal_uIntPtr nSize ); virtual sal_uIntPtr GetData( void* pData, sal_uIntPtr nSize );
...@@ -420,12 +418,6 @@ UCBStream::UCBStream( Reference< XInputStream > & rStm ) ...@@ -420,12 +418,6 @@ UCBStream::UCBStream( Reference< XInputStream > & rStm )
{ {
} }
UCBStream::UCBStream( Reference< XOutputStream > & rStm )
: xOS( rStm )
, xSeek( rStm, UNO_QUERY )
{
}
UCBStream::UCBStream( Reference< XStream > & rStm ) UCBStream::UCBStream( Reference< XStream > & rStm )
: xS( rStm ) : xS( rStm )
, xSeek( rStm, UNO_QUERY ) , xSeek( rStm, UNO_QUERY )
...@@ -439,8 +431,6 @@ UCBStream::~UCBStream() ...@@ -439,8 +431,6 @@ UCBStream::~UCBStream()
{ {
if( xIS.is() ) if( xIS.is() )
xIS->closeInput(); xIS->closeInput();
else if( xOS.is() )
xOS->closeOutput();
else if( xS.is() ) else if( xS.is() )
{ {
Reference< XInputStream > xIS_ = xS->getInputStream(); Reference< XInputStream > xIS_ = xS->getInputStream();
...@@ -488,13 +478,7 @@ sal_uIntPtr UCBStream::PutData( const void* pData, sal_uIntPtr nSize ) ...@@ -488,13 +478,7 @@ sal_uIntPtr UCBStream::PutData( const void* pData, sal_uIntPtr nSize )
try try
{ {
Reference< XOutputStream > xOSFromS; Reference< XOutputStream > xOSFromS;
if( xOS.is() ) if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
{
Sequence<sal_Int8> aData( (const sal_Int8 *)pData, nSize );
xOS->writeBytes( aData );
return nSize;
}
else if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
{ {
Sequence<sal_Int8> aData( (const sal_Int8 *)pData, nSize ); Sequence<sal_Int8> aData( (const sal_Int8 *)pData, nSize );
xOSFromS->writeBytes( aData ); xOSFromS->writeBytes( aData );
...@@ -537,9 +521,7 @@ void UCBStream::FlushData() ...@@ -537,9 +521,7 @@ void UCBStream::FlushData()
try try
{ {
Reference< XOutputStream > xOSFromS; Reference< XOutputStream > xOSFromS;
if( xOS.is() ) if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
xOS->flush();
else if( xS.is() && (xOSFromS = xS->getOutputStream()).is() )
xOSFromS->flush(); xOSFromS->flush();
else else
SetError( ERRCODE_IO_GENERAL ); SetError( ERRCODE_IO_GENERAL );
......
...@@ -184,13 +184,6 @@ protected: ...@@ -184,13 +184,6 @@ protected:
*/ */
void describeProperties(::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps) const; void describeProperties(::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps) const;
/** modify the attributes of an already registered property.
You may want to use this if you're a derived from OPropertyContainer indirectly and want to override
some settings your base class did.
*/
void modifyAttributes(sal_Int32 _nHandle, sal_Int32 _nAddAttrib, sal_Int32 _nRemoveAttrib);
/** retrieves the description for a registered property /** retrieves the description for a registered property
@throw com::sun::star::beans::UnknownPropertyException @throw com::sun::star::beans::UnknownPropertyException
if no property with the given name is registered if no property with the given name is registered
......
...@@ -486,22 +486,6 @@ const Property& OPropertyContainerHelper::getProperty( const ::rtl::OUString& _r ...@@ -486,22 +486,6 @@ const Property& OPropertyContainerHelper::getProperty( const ::rtl::OUString& _r
return pos->aProperty; return pos->aProperty;
} }
//--------------------------------------------------------------------------
void OPropertyContainerHelper::modifyAttributes(sal_Int32 _nHandle, sal_Int32 _nAddAttrib, sal_Int32 _nRemoveAttrib)
{
// get the property somebody is asking for
PropertiesIterator aPos = searchHandle(_nHandle);
if (aPos == m_aProperties.end())
{
OSL_FAIL( "OPropertyContainerHelper::modifyAttributes: unknown handle!" );
// should not happen if the derived class has built a correct property set info helper to be used by
// our base class OPropertySetHelper
return;
}
aPos->aProperty.Handle |= _nAddAttrib;
aPos->aProperty.Handle &= ~_nRemoveAttrib;
}
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps) const void OPropertyContainerHelper::describeProperties(Sequence< Property >& _rProps) const
{ {
......
...@@ -68,7 +68,7 @@ class SfxVoidItem; ...@@ -68,7 +68,7 @@ class SfxVoidItem;
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// class EditAttrib // class EditAttrib
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
class EditAttrib : public boost::noncopyable class EditAttrib : private boost::noncopyable
{ {
private: private:
EditAttrib(); EditAttrib();
......
...@@ -1520,18 +1520,6 @@ EditPaM EditDoc::RemoveText() ...@@ -1520,18 +1520,6 @@ EditPaM EditDoc::RemoveText()
return aPaM; return aPaM;
} }
void EditDoc::InsertText( EditPaM& rPaM, xub_Unicode c )
{
DBG_ASSERT( c != 0x0A, "EditDoc::InsertText: Newlines prohibited in paragraph!" );
DBG_ASSERT( c != 0x0D, "EditDoc::InsertText: Newlines prohibited in paragraph!" );
DBG_ASSERT( c != '\t', "EditDoc::InsertText: Newlines prohibited in paragraph!" );
rPaM.GetNode()->Insert( c, rPaM.GetIndex() );
rPaM.GetNode()->ExpandAttribs( rPaM.GetIndex(), 1, GetItemPool() );
SetModified( sal_True );
}
EditPaM EditDoc::InsertText( EditPaM aPaM, const XubString& rStr ) EditPaM EditDoc::InsertText( EditPaM aPaM, const XubString& rStr )
{ {
DBG_ASSERT( rStr.Search( 0x0A ) == STRING_NOTFOUND, "EditDoc::InsertText: Newlines prohibited in paragraph!" ); DBG_ASSERT( rStr.Search( 0x0A ) == STRING_NOTFOUND, "EditDoc::InsertText: Newlines prohibited in paragraph!" );
......
...@@ -780,7 +780,6 @@ public: ...@@ -780,7 +780,6 @@ public:
EditPaM Clear(); EditPaM Clear();
EditPaM RemoveText(); EditPaM RemoveText();
EditPaM RemoveChars( EditPaM aPaM, sal_uInt16 nChars ); EditPaM RemoveChars( EditPaM aPaM, sal_uInt16 nChars );
void InsertText( EditPaM& rPaM, xub_Unicode c );
EditPaM InsertText( EditPaM aPaM, const XubString& rStr ); EditPaM InsertText( EditPaM aPaM, const XubString& rStr );
EditPaM InsertParaBreak( EditPaM aPaM, sal_Bool bKeepEndingAttribs ); EditPaM InsertParaBreak( EditPaM aPaM, sal_Bool bKeepEndingAttribs );
EditPaM InsertFeature( EditPaM aPaM, const SfxPoolItem& rItem ); EditPaM InsertFeature( EditPaM aPaM, const SfxPoolItem& rItem );
......
...@@ -196,10 +196,6 @@ openNewDoc(rtl::OUString aSheetName ) ...@@ -196,10 +196,6 @@ openNewDoc(rtl::OUString aSheetName )
return xModel; return xModel;
} }
ScVbaWorksheet::ScVbaWorksheet( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext ) : WorksheetImpl_BASE( xParent, xContext ), mbVeryHidden( false )
{
}
ScVbaWorksheet::ScVbaWorksheet(const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, ScVbaWorksheet::ScVbaWorksheet(const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< sheet::XSpreadsheet >& xSheet, const uno::Reference< sheet::XSpreadsheet >& xSheet,
const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException) : WorksheetImpl_BASE( xParent, xContext ), mxSheet( xSheet ), mxModel(xModel) const uno::Reference< frame::XModel >& xModel ) throw (uno::RuntimeException) : WorksheetImpl_BASE( xParent, xContext ), mxSheet( xSheet ), mxModel(xModel)
......
...@@ -72,9 +72,6 @@ class ScVbaWorksheet : public WorksheetImpl_BASE ...@@ -72,9 +72,6 @@ class ScVbaWorksheet : public WorksheetImpl_BASE
css::uno::Reference< css::container::XNameAccess > getFormControls(); css::uno::Reference< css::container::XNameAccess > getFormControls();
css::uno::Any getControlShape( const rtl::OUString& sName ); css::uno::Any getControlShape( const rtl::OUString& sName );
protected:
ScVbaWorksheet( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext );
public: public:
ScVbaWorksheet( const css::uno::Reference< ov::XHelperInterface >& xParent, ScVbaWorksheet( const css::uno::Reference< ov::XHelperInterface >& xParent,
const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XComponentContext >& xContext,
......
...@@ -40,7 +40,6 @@ public: ...@@ -40,7 +40,6 @@ public:
{ nTop = nRight = nBottom = nLeft = 0; } { nTop = nRight = nBottom = nLeft = 0; }
SvBorder( const Size & rSz ) SvBorder( const Size & rSz )
{ nTop = nBottom = rSz.Height(); nRight = nLeft = rSz.Width(); } { nTop = nBottom = rSz.Height(); nRight = nLeft = rSz.Width(); }
SvBorder( const Rectangle & rOuter, const Rectangle & rInner );
SvBorder( long nLeftP, long nTopP, long nRightP, long nBottomP ) SvBorder( long nLeftP, long nTopP, long nRightP, long nBottomP )
{ nLeft = nLeftP; nTop = nTopP; nRight = nRightP; nBottom = nBottomP; } { nLeft = nLeftP; nTop = nTopP; nRight = nRightP; nBottom = nBottomP; }
sal_Bool operator == ( const SvBorder & rObj ) const sal_Bool operator == ( const SvBorder & rObj ) const
......
...@@ -30,24 +30,6 @@ ...@@ -30,24 +30,6 @@
#include <tools/svborder.hxx> #include <tools/svborder.hxx>
#include <osl/diagnose.h> #include <osl/diagnose.h>
SvBorder::SvBorder( const Rectangle & rOuter, const Rectangle & rInner )
{
Rectangle aOuter( rOuter );
aOuter.Justify();
Rectangle aInner( rInner );
if( aInner.IsEmpty() )
aInner = Rectangle( aOuter.Center(), aOuter.Center() );
else
aInner.Justify();
OSL_ENSURE( aOuter.IsInside( aInner ),
"SvBorder::SvBorder: sal_False == aOuter.IsInside( aInner )" );
nTop = aInner.Top() - aOuter.Top();
nRight = aOuter.Right() - aInner.Right();
nBottom = aOuter.Bottom() - aInner.Bottom();
nLeft = aInner.Left() - aOuter.Left();
}
Rectangle & operator += ( Rectangle & rRect, const SvBorder & rBorder ) Rectangle & operator += ( Rectangle & rRect, const SvBorder & rBorder )
{ {
// wegen Empty-Rect, GetSize muss als erstes gerufen werden // wegen Empty-Rect, GetSize muss als erstes gerufen werden
......
...@@ -5,7 +5,6 @@ CharPosArray::Replace(int const&, unsigned short) ...@@ -5,7 +5,6 @@ CharPosArray::Replace(int const&, unsigned short)
CharPosArray::Replace(int const*, unsigned short, unsigned short) CharPosArray::Replace(int const*, unsigned short, unsigned short)
CharPosArray::_ForEach(unsigned short, unsigned short, unsigned char (*)(int const&, void*), void*) CharPosArray::_ForEach(unsigned short, unsigned short, unsigned char (*)(int const&, void*), void*)
Dialog::Dialog(Window*, ResId const&) Dialog::Dialog(Window*, ResId const&)
EditDoc::InsertText(EditPaM&, unsigned short)
FmEntryDataArray::DeleteAndDestroy(unsigned short, unsigned short) FmEntryDataArray::DeleteAndDestroy(unsigned short, unsigned short)
FmEntryDataArray::Insert(FmEntryData* const&, unsigned short&) FmEntryDataArray::Insert(FmEntryData* const&, unsigned short&)
FmEntryDataArray::Insert(FmEntryData* const*, unsigned short) FmEntryDataArray::Insert(FmEntryData* const*, unsigned short)
...@@ -111,7 +110,6 @@ ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent() ...@@ -111,7 +110,6 @@ ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
ScVbaFormat<ooo::vba::excel::XStyle>::getXServiceInfo() ScVbaFormat<ooo::vba::excel::XStyle>::getXServiceInfo()
ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&) 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&) ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
ScVbaWorksheet::ScVbaWorksheet(com::sun::star::uno::Reference<ooo::vba::XHelperInterface> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
ScrollableWindow::MakeVisible(Rectangle const&, unsigned char) ScrollableWindow::MakeVisible(Rectangle const&, unsigned char)
SectReprArr::Insert(SectRepr* const&, unsigned short&) SectReprArr::Insert(SectRepr* const&, unsigned short&)
SectReprArr::Insert(SectRepr* const*, unsigned short) SectReprArr::Insert(SectRepr* const*, unsigned short)
...@@ -141,7 +139,6 @@ SrchAttrItemList::Replace(SearchAttrItem const*, unsigned short, unsigned short) ...@@ -141,7 +139,6 @@ SrchAttrItemList::Replace(SearchAttrItem const*, unsigned short, unsigned short)
SrchAttrItemList::_ForEach(unsigned short, unsigned short, unsigned char (*)(SearchAttrItem const&, void*), void*) SrchAttrItemList::_ForEach(unsigned short, unsigned short, unsigned char (*)(SearchAttrItem const&, void*), void*)
StgCache::Pos2Page(int) StgCache::Pos2Page(int)
StgHeader::SetClassId(ClsId const&) StgHeader::SetClassId(ClsId const&)
SvBorder::SvBorder(Rectangle const&, Rectangle const&)
SvLBoxButton::Check(SvLBox*, SvLBoxEntry*, unsigned char) SvLBoxButton::Check(SvLBox*, SvLBoxEntry*, unsigned char)
SvLBoxButtonData::SvLBoxButtonData() SvLBoxButtonData::SvLBoxButtonData()
SvLBoxEntryArr::DeleteAndDestroy(unsigned short, unsigned short) SvLBoxEntryArr::DeleteAndDestroy(unsigned short, unsigned short)
...@@ -157,7 +154,6 @@ SvXMLEmbeddedElementArr::Insert(SvXMLEmbeddedElementArr const*, unsigned short, ...@@ -157,7 +154,6 @@ SvXMLEmbeddedElementArr::Insert(SvXMLEmbeddedElementArr const*, unsigned short,
SvXMLEmbeddedElementArr::Remove(SvXMLEmbeddedElement* const&, unsigned short) SvXMLEmbeddedElementArr::Remove(SvXMLEmbeddedElement* const&, unsigned short)
SvXMLEmbeddedElementArr::Remove(unsigned short, unsigned short) SvXMLEmbeddedElementArr::Remove(unsigned short, unsigned short)
SvXMLImportContexts_Impl::DeleteAndDestroy(unsigned short, unsigned short) SvXMLImportContexts_Impl::DeleteAndDestroy(unsigned short, unsigned short)
SvXMLImportPropertyMapper::importXML(std::__debug::vector<XMLPropertyState, std::allocator<XMLPropertyState> >&, com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList>, SvXMLUnitConverter const&, SvXMLNamespaceMap const&, unsigned int) const
SvXMLStyleIndices_Impl::GetPos(SvXMLStyleIndex_Impl const*) const SvXMLStyleIndices_Impl::GetPos(SvXMLStyleIndex_Impl const*) const
SvXMLStyleIndices_Impl::Remove(SvXMLStyleIndex_Impl*) SvXMLStyleIndices_Impl::Remove(SvXMLStyleIndex_Impl*)
SvXMLTokenMap_Impl::Insert(SvXMLTokenMapEntry_Impl* const&, unsigned short&) SvXMLTokenMap_Impl::Insert(SvXMLTokenMapEntry_Impl* const&, unsigned short&)
...@@ -307,7 +303,6 @@ TempFile::IsValid() const ...@@ -307,7 +303,6 @@ TempFile::IsValid() const
TextEngine::GetLeftMargin() const TextEngine::GetLeftMargin() const
TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&) TransferableDataHelper::GetInterface(com::sun::star::datatransfer::DataFlavor const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface>&)
TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl()
UCBStream::UCBStream(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream>&)
UnoControlBase::UnoControlBase() UnoControlBase::UnoControlBase()
UnoControlModel::Clone() const UnoControlModel::Clone() const
UnoControlModel::GetImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&) UnoControlModel::GetImplementation(com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&)
...@@ -764,7 +759,6 @@ canvas::tools::clipBlit(basegfx::B2IRange&, basegfx::B2IPoint&, basegfx::B2IRang ...@@ -764,7 +759,6 @@ canvas::tools::clipBlit(basegfx::B2IRange&, basegfx::B2IPoint&, basegfx::B2IRang
cmis::Content::exchangeIdentity(com::sun::star::uno::Reference<com::sun::star::ucb::XContentIdentifier> const&) cmis::Content::exchangeIdentity(com::sun::star::uno::Reference<com::sun::star::ucb::XContentIdentifier> const&)
cmis::Content::queryChildren(std::__debug::list<rtl::Reference<cmis::Content>, std::allocator<rtl::Reference<cmis::Content> > >&) cmis::Content::queryChildren(std::__debug::list<rtl::Reference<cmis::Content>, std::allocator<rtl::Reference<cmis::Content> > >&)
comphelper::EventLogger::EventLogger(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&) comphelper::EventLogger::EventLogger(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&)
comphelper::OPropertyContainerHelper::modifyAttributes(int, int, int)
comphelper::OSelectionChangeListener::disposeAdapter() comphelper::OSelectionChangeListener::disposeAdapter()
comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const
comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const
......
...@@ -89,17 +89,9 @@ public: ...@@ -89,17 +89,9 @@ public:
void ChainImportMapper( void ChainImportMapper(
const UniReference< SvXMLImportPropertyMapper>& rMapper ); const UniReference< SvXMLImportPropertyMapper>& rMapper );
/** fills the given itemset with the attributes in the given list */ /** fills the given itemset with the attributes in the given list
void importXML( * the map is only searched within the range
::std::vector< XMLPropertyState >& rProperties, * [nStartIdx, nEndIdx[
::com::sun::star::uno::Reference<
::com::sun::star::xml::sax::XAttributeList > xAttrList,
const SvXMLUnitConverter& rUnitConverter,
const SvXMLNamespaceMap& rNamespaceMap,
sal_uInt32 nPropType ) const;
/** like above, except that the mart is only serached within the range
* [nStartIdx, nEndIdx[
*/ */
void importXML( void importXML(
::std::vector< XMLPropertyState >& rProperties, ::std::vector< XMLPropertyState >& rProperties,
......
...@@ -112,17 +112,6 @@ void SvXMLImportPropertyMapper::ChainImportMapper( ...@@ -112,17 +112,6 @@ void SvXMLImportPropertyMapper::ChainImportMapper(
} }
} }
void SvXMLImportPropertyMapper::importXML(
vector< XMLPropertyState >& rProperties,
Reference< XAttributeList > xAttrList,
const SvXMLUnitConverter& rUnitConverter,
const SvXMLNamespaceMap& rNamespaceMap,
sal_uInt32 nPropType ) const
{
importXML( rProperties, xAttrList, rUnitConverter, rNamespaceMap,
nPropType,-1, -1 );
}
/** fills the given itemset with the attributes in the given list */ /** fills the given itemset with the attributes in the given list */
void SvXMLImportPropertyMapper::importXML( void SvXMLImportPropertyMapper::importXML(
vector< XMLPropertyState >& rProperties, vector< XMLPropertyState >& rProperties,
......
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