diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 00:31:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:08 +0100 |
commit | de82a40f84c69081a517617989c344ec9597cb45 (patch) | |
tree | 6b9c15c67b11db681e6e8417b62efdd0a98b013a /editeng | |
parent | various centralized isFOOAsciiStrings (diff) | |
download | core-de82a40f84c69081a517617989c344ec9597cb45.tar.gz core-de82a40f84c69081a517617989c344ec9597cb45.zip |
callcatcher: drop various unused methods
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdbg.cxx | 46 | ||||
-rw-r--r-- | editeng/source/editeng/editdbg.hxx | 1 |
2 files changed, 0 insertions, 47 deletions
diff --git a/editeng/source/editeng/editdbg.cxx b/editeng/source/editeng/editdbg.cxx index 8ad732bcd06f..14c45f58cbc4 100644 --- a/editeng/source/editeng/editdbg.cxx +++ b/editeng/source/editeng/editdbg.cxx @@ -487,52 +487,6 @@ void EditDbg::ShowEditEngineData( EditEngine* pEE, sal_Bool bInfoBox ) InfoBox(0, String( RTL_CONSTASCII_USTRINGPARAM( "D:\\DEBUG.LOG !" ) ) ).Execute(); } -rtl::OString EditDbg::GetPortionInfo( ParaPortion* pPPortion ) -{ - sal_uInt16 z; - - rtl::OStringBuffer aDebStr(RTL_CONSTASCII_STRINGPARAM("Paragraph Length = ")); - aDebStr.append(static_cast<sal_Int32>(pPPortion->GetNode()->Len())); - - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nCharacter attribute:")); - for ( z = 0; z < pPPortion->GetNode()->GetCharAttribs().Count(); z++ ) - { - EditCharAttrib* pAttr = pPPortion->GetNode()->GetCharAttribs().GetAttribs().GetObject( z ); - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\n ")); - aDebStr.append(static_cast<sal_Int32>(pAttr->GetItem()->Which())); - aDebStr.append('\t'); - aDebStr.append(static_cast<sal_Int32>(pAttr->GetStart())); - aDebStr.append('\t'); - aDebStr.append(static_cast<sal_Int32>(pAttr->GetEnd())); - } - - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nText portions:")); - sal_uInt16 n = 0; - for ( z = 0; z < pPPortion->GetTextPortions().Count(); z++ ) - { - TextPortion* pPortion = pPPortion->GetTextPortions().GetObject( z ); - aDebStr.append(' '); - aDebStr.append(static_cast<sal_Int32>(pPortion->GetLen())); - aDebStr.append('('); - aDebStr.append(static_cast<sal_Int32>(pPortion->GetSize().Width())); - aDebStr.append(')'); - aDebStr.append(';'); - n = n + pPortion->GetLen(); - } - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nTotal length: ")); - aDebStr.append(static_cast<sal_Int32>(n)); - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nSorted after Start:")); - for ( sal_uInt16 x = 0; x < pPPortion->GetNode()->GetCharAttribs().Count(); x++ ) - { - EditCharAttrib* pCurAttrib = pPPortion->GetNode()->GetCharAttribs().GetAttribs().GetObject( x ); - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\nStart: ")); - aDebStr.append(static_cast<sal_Int32>(pCurAttrib->GetStart())); - aDebStr.append(RTL_CONSTASCII_STRINGPARAM("\tEnd: ")); - aDebStr.append(static_cast<sal_Int32>(pCurAttrib->GetEnd())); - } - return aDebStr.makeStringAndClear(); -} - sal_Bool ParaPortion::DbgCheckTextPortions() { // check, if Portion length ok: diff --git a/editeng/source/editeng/editdbg.hxx b/editeng/source/editeng/editdbg.hxx index 7154dfdb06e5..46e76f7130e4 100644 --- a/editeng/source/editeng/editdbg.hxx +++ b/editeng/source/editeng/editdbg.hxx @@ -48,7 +48,6 @@ class EditDbg { public: static void ShowEditEngineData( EditEngine* pEditEngine, sal_Bool bInfoBox = sal_True ); - static rtl::OString GetPortionInfo( ParaPortion* pPPortion ); static ByteString GetUndoDebStr( EditUndoList* pUndoList ); }; |