diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-03-30 20:52:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-04-02 14:53:47 +0100 |
commit | b26df89e6c9405c5818a6f31f2c012ab657c421d (patch) | |
tree | 2ffbd0eb473f70da7f03685528b479640bfbe7b2 /editeng | |
parent | sal: reduce allocation thrash in URI encode / decode (diff) | |
download | core-b26df89e6c9405c5818a6f31f2c012ab657c421d.tar.gz core-b26df89e6c9405c5818a6f31f2c012ab657c421d.zip |
callcatcher: remove some unused code
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editattr.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 12 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 1 |
3 files changed, 1 insertions, 14 deletions
diff --git a/editeng/source/editeng/editattr.hxx b/editeng/source/editeng/editattr.hxx index 5855e476439b..45c66d2fa78e 100644 --- a/editeng/source/editeng/editattr.hxx +++ b/editeng/source/editeng/editattr.hxx @@ -68,7 +68,7 @@ class SfxVoidItem; // ------------------------------------------------------------------------- // class EditAttrib // ------------------------------------------------------------------------- -class EditAttrib : public boost::noncopyable +class EditAttrib : private boost::noncopyable { private: EditAttrib(); diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index c05e379c00d6..54e2016e48ac 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1520,18 +1520,6 @@ EditPaM EditDoc::RemoveText() 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 ) { DBG_ASSERT( rStr.Search( 0x0A ) == STRING_NOTFOUND, "EditDoc::InsertText: Newlines prohibited in paragraph!" ); diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 609e2bd5d246..c28ed07ac70e 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -780,7 +780,6 @@ public: EditPaM Clear(); EditPaM RemoveText(); EditPaM RemoveChars( EditPaM aPaM, sal_uInt16 nChars ); - void InsertText( EditPaM& rPaM, xub_Unicode c ); EditPaM InsertText( EditPaM aPaM, const XubString& rStr ); EditPaM InsertParaBreak( EditPaM aPaM, sal_Bool bKeepEndingAttribs ); EditPaM InsertFeature( EditPaM aPaM, const SfxPoolItem& rItem ); |