diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-10 22:26:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-11 11:55:04 +0000 |
commit | 328e09955a612b8bcd6962f8af1b5dfb7272871a (patch) | |
tree | 61579837ac6ee0976d7d671e1120eeee2cf78489 /editeng | |
parent | 6ddb02bad568be58c8728a40c43b81232c1ca4a0 (diff) |
callcatcher: remove some unused code
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 3 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc2.cxx | 11 |
2 files changed, 5 insertions, 9 deletions
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index a8e29bc28454..b29c3a0608d1 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -653,9 +653,10 @@ public: { return ( nPos < Count() ) ? GetObject( nPos ) : 0; } sal_uInt16 GetPos( const ParaPortionPtr &rPtr ) const; - +#if OSL_DEBUG_LEVEL > 2 // temporary: void DbgCheck( EditDoc& rDoc ); +#endif }; // ------------------------------------------------------------------------- diff --git a/editeng/source/editeng/editdoc2.cxx b/editeng/source/editeng/editdoc2.cxx index abd8388800c0..332f49946496 100644 --- a/editeng/source/editeng/editdoc2.cxx +++ b/editeng/source/editeng/editdoc2.cxx @@ -379,13 +379,9 @@ sal_uInt16 ParaPortionList::FindParagraph( long nYOffset ) return 0xFFFF; // Should be reachable through EE_PARA_NOT_FOUND! } -void ParaPortionList::DbgCheck( EditDoc& -#ifdef DBG_UTIL - rDoc -#endif - ) +#if OSL_DEBUG_LEVEL > 2 +void ParaPortionList::DbgCheck( EditDoc& rDoc) { -#ifdef DBG_UTIL DBG_ASSERT( Count() == rDoc.Count(), "ParaPortionList::DbgCheck() - Count() unequal!" ); for ( sal_uInt16 i = 0; i < Count(); i++ ) { @@ -393,9 +389,8 @@ void ParaPortionList::DbgCheck( EditDoc& DBG_ASSERT( GetObject(i)->GetNode(), "ParaPortionList::DbgCheck() - Null-Pointer in List(2)!" ); DBG_ASSERT( GetObject(i)->GetNode() == rDoc.GetObject(i), "ParaPortionList::DbgCheck() - Entries intersect!" ); } -#endif } - +#endif ContentAttribsInfo::ContentAttribsInfo( const SfxItemSet& rParaAttribs ) : aPrevParaAttribs( rParaAttribs) |