summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-29 00:31:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:08 +0100
commitde82a40f84c69081a517617989c344ec9597cb45 (patch)
tree6b9c15c67b11db681e6e8417b62efdd0a98b013a /editeng
parent313332e76bd17c0a5a6bd67c0abc467877948a3a (diff)
callcatcher: drop various unused methods
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdbg.cxx46
-rw-r--r--editeng/source/editeng/editdbg.hxx1
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 );
};