diff options
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/inc/MarkManager.hxx | 3 | ||||
-rwxr-xr-x | unusedcode.easy | 2 | ||||
-rw-r--r-- | vbahelper/inc/vbahelper/vbahelper.hxx | 4 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbahelper.cxx | 17 |
5 files changed, 0 insertions, 38 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx index fdbddb521ecf..ea2a433237a6 100644 --- a/sw/source/core/doc/docbm.cxx +++ b/sw/source/core/doc/docbm.cxx @@ -304,18 +304,6 @@ namespace sw { namespace mark MarkManager::MarkManager(SwDoc& rDoc) : m_pDoc(&rDoc) { } -#ifdef DBG_UTIL - void MarkManager::dumpFieldmarks( ) const - { - const_iterator_t pIt = m_vFieldmarks.begin(); - for (; pIt != m_vFieldmarks.end( ); pIt++) - { - rtl::OUString str = (*pIt)->ToString(); - OSL_TRACE("%s\n", - ::rtl::OUStringToOString(str, RTL_TEXTENCODING_UTF8).getStr()); - } - } -#endif ::sw::mark::IMark* MarkManager::makeMark(const SwPaM& rPaM, const ::rtl::OUString& rName, const IDocumentMarkAccess::MarkType eType) diff --git a/sw/source/core/inc/MarkManager.hxx b/sw/source/core/inc/MarkManager.hxx index 1c917c79f939..6fc8a4d52eaa 100644 --- a/sw/source/core/inc/MarkManager.hxx +++ b/sw/source/core/inc/MarkManager.hxx @@ -45,9 +45,6 @@ namespace sw { namespace mark { public: MarkManager(/*[in/out]*/ SwDoc& rDoc); -#ifdef DBG_UTIL - void dumpFieldmarks( ) const; -#endif // IDocumentMarkAccess virtual ::sw::mark::IMark* makeMark(const SwPaM& rPaM, const ::rtl::OUString& rName, IDocumentMarkAccess::MarkType eMark); diff --git a/unusedcode.easy b/unusedcode.easy index 6699ed557de6..7441a3a7e1d3 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -790,7 +790,6 @@ nullcanvas::SpriteCanvasHelper::backgroundPaint(basegfx::B2DRange const&) nullcanvas::SpriteCanvasHelper::genericUpdate(basegfx::B2DConnectedRanges<canvas::SpriteRedrawManager::SpriteInfo>::ConnectedComponents const&) nullcanvas::SpriteCanvasHelper::opaqueUpdate(basegfx::B2DConnectedRanges<canvas::SpriteRedrawManager::SpriteInfo>::ConnectedComponents const&) nullcanvas::SpriteCanvasHelper::scrollUpdate(basegfx::B2DRange const&, basegfx::B2DRange const&, basegfx::B2DConnectedRanges<canvas::SpriteRedrawManager::SpriteInfo>::ConnectedComponents const&) -ooo::vba::extractIntFromAny(com::sun::star::uno::Any const&) oox::PropertyMap::dump(com::sun::star::uno::Reference<com::sun::star::beans::XPropertySet>) oox::core::BinaryFilterBase::BinaryFilterBase(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) oox::core::FilterBase::openSubStorage(rtl::OUString const&, bool) const @@ -872,4 +871,3 @@ svxform::SvLBoxEntrySortedArray::Insert(SvLBoxEntry* const&, unsigned short&) svxform::SvLBoxEntrySortedArray::Insert(SvLBoxEntry* const*, unsigned short) svxform::SvLBoxEntrySortedArray::Insert(svxform::SvLBoxEntrySortedArray const*, unsigned short, unsigned short) svxform::SvLBoxEntrySortedArray::Remove(SvLBoxEntry* const&, unsigned short) -sw::mark::MarkManager::dumpFieldmarks() const diff --git a/vbahelper/inc/vbahelper/vbahelper.hxx b/vbahelper/inc/vbahelper/vbahelper.hxx index 9a3da3c5f836..e9a316ba1e8c 100644 --- a/vbahelper/inc/vbahelper/vbahelper.hxx +++ b/vbahelper/inc/vbahelper/vbahelper.hxx @@ -99,10 +99,6 @@ namespace ooo VBAHELPER_DLLPUBLIC void PrintOutHelper( SfxViewShell* pViewShell, const css::uno::Any& From, const css::uno::Any& To, const css::uno::Any& Copies, const css::uno::Any& Preview, const css::uno::Any& ActivePrinter, const css::uno::Any& PrintToFile, const css::uno::Any& Collate, const css::uno::Any& PrToFileName, sal_Bool bSelection ); VBAHELPER_DLLPUBLIC void PrintPreviewHelper( const css::uno::Any& EnableChanges, SfxViewShell* ); - /** Extracts a 32-bit integer value from the passed Any, which may contain an integer or floating-point value. - Throws, if the Any is empty or contains an incompatible type. */ - VBAHELPER_DLLPUBLIC sal_Int32 extractIntFromAny( const css::uno::Any& rAny ) throw (css::uno::RuntimeException); - /** Extracts a boolean value from the passed Any, which may contain a Boolean or an integer or floating-point value. Throws, if the Any is empty or contains an incompatible type. */ VBAHELPER_DLLPUBLIC bool extractBoolFromAny( const css::uno::Any& rAny ) throw (css::uno::RuntimeException); diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index a8cfb1a6503e..b91ef85e126d 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -476,23 +476,6 @@ void PrintOutHelper( SfxViewShell* pViewShell, const uno::Any& From, const uno:: dispatchExecute( pViewShell, SID_VIEWSHELL1 ); } -sal_Int32 extractIntFromAny( const uno::Any& rAny ) throw (uno::RuntimeException) -{ - switch( rAny.getValueType().getTypeClass() ) - { - case uno::TypeClass_FLOAT: - return static_cast< sal_Int32 >( rAny.get< float >() ); - case uno::TypeClass_DOUBLE: - return static_cast< sal_Int32 >( rAny.get< double >() ); - case uno::TypeClass_BYTE: - case uno::TypeClass_SHORT: - case uno::TypeClass_LONG: - return rAny.get< sal_Int32 >(); - default:; - } - throw uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Invalid type, cannot convert to integer." ) ), 0 ); -} - bool extractBoolFromAny( const uno::Any& rAny ) throw (uno::RuntimeException) { switch( rAny.getValueType().getTypeClass() ) |