Kaydet (Commit) 853e3fb6 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: remove remaining not-compiling debug code to fix dbglevel=2 build

Change-Id: Ia94cb6b52d34e741106a9b0c84ec2158465f0843
Reviewed-on: https://gerrit.libreoffice.org/48641Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 199b307b
......@@ -392,9 +392,6 @@ public:
Sttb();
bool Read(SvStream &rS) override;
#if OSL_DEBUG_LEVEL > 1
virtual void Print( FILE* fp ) override;
#endif
OUString getStringAtIndex( sal_uInt32 );
};
......@@ -427,28 +424,6 @@ bool Sttb::Read( SvStream& rS )
return true;
}
#if OSL_DEBUG_LEVEL > 1
void Sttb::Print( FILE* fp )
{
fprintf( fp, "[ 0x%" SAL_PRIxUINT32 " ] Sttb - dump\n", nOffSet);
fprintf( fp, " fExtend 0x%x [expected 0xFFFF ]\n", fExtend );
fprintf( fp, " cData no. or string data items %d (0x%x)\n", cData, cData );
if ( cData )
{
for (sal_uInt16 index = 0; index < cData; ++index)
{
if (index >= dataItems.size())
{
fprintf(fp, " Sttb truncated at entry %d(0x%x)\n", static_cast< int >( index ), static_cast< unsigned int >( index ));
break;
}
fprintf(fp," string dataItem[ %d(0x%x) ] has name %s\n", static_cast< int >( index ), static_cast< unsigned int >( index ), OUStringToOString( dataItems[ index ].data, RTL_TEXTENCODING_UTF8 ).getStr() );
}
}
}
#endif
OUString
Sttb::getStringAtIndex( sal_uInt32 index )
{
......@@ -4756,9 +4731,6 @@ void SwWW8ImplReader::ReadDocInfo()
if (!checkSeek(*m_pTableStream, m_xWwFib->m_fcSttbfAssoc) || !aSttb.Read(*m_pTableStream))
SAL_WARN("sw.ww8", "** Read of SttbAssoc data failed!!!! ");
m_pTableStream->Seek( nCur ); // return to previous position, is that necessary?
#if OSL_DEBUG_LEVEL > 1
aSttb.Print( stderr );
#endif
OUString sPath = aSttb.getStringAtIndex( 0x1 );
OUString aURL;
// attempt to convert to url (won't work for obvious reasons on linux)
......@@ -4840,9 +4812,6 @@ void WW8Customizations::Import( SwDocShell* pShell )
SAL_WARN("sw.ww8", "** Read of Customization data failed!!!! ");
return;
}
#if OSL_DEBUG_LEVEL > 1
aTCG.Print( stderr );
#endif
aTCG.ImportCustomToolBar( *pShell );
}
catch(...)
......
......@@ -3333,20 +3333,6 @@ IMPL_LINK(SwTokenWindow, ScrollHdl, Button*, pBtn, void )
return;
const long nSpace = m_pCtrlParentWin->GetSizePixel().Width();
#if OSL_DEBUG_LEVEL > 1
//find all start/end positions and print it
OUString sMessage("Space: " + OUString::number(nSpace) + " | ");
for (VclPtr<Control> const & pDebugCtrl : aControlList)
{
long nDebugXPos = pDebugCtrl->GetPosPixel().X();
long nDebugWidth = pDebugCtrl->GetSizePixel().Width();
sMessage += OUString::number(nDebugXPos) + " "
+ OUString::number(nDebugXPos + nDebugWidth) + " | ";
}
#endif
long nMove = 0;
if(pBtn == m_pLeftScrollWin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment