summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-28 23:41:52 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-29 15:39:11 +0100
commit9c03e3097f59f57b60780ab8b2791ca08ddc4192 (patch)
treec357e31d5d5a7040a269f32483a9672c93711862 /sal
parentRemove double line spacing and correct indentation (diff)
downloadcore-9c03e3097f59f57b60780ab8b2791ca08ddc4192.tar.gz
core-9c03e3097f59f57b60780ab8b2791ca08ddc4192.zip
cppcheck: remove unused variable strLen.
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/profile.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index b2f10a330320..54b92684c31a 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -1503,10 +1503,6 @@ static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine)
{
unsigned int Len = strlen(pszLine);
-#ifdef DEBUG_OSL_PROFILE
- int strLen=0;
-#endif
-
if ( pFile == 0 || pFile->m_Handle < 0 )
{
return (sal_False);
@@ -1539,19 +1535,13 @@ static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine)
memcpy(pFile->m_pWriteBuf + ( pFile->m_nWriteBufLen - pFile->m_nWriteBufFree ),pszLine,Len+1);
-#ifdef DEBUG_OSL_PROFILE
- strLen = strlen(pFile->m_pWriteBuf);
-#endif
+
pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len]='\r';
pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len + 1]='\n';
pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len + 2]='\0';
pFile->m_nWriteBufFree-=Len+2;
-#ifdef DEBUG_OSL_PROFILE
-/* OSL_TRACE("File Buffer in _putLine '%s' '%i'(%i)\n",pFile->m_pWriteBuf,strlen(pFile->m_pWriteBuf),pFile->m_nWriteBufLen - pFile->m_nWriteBufFree);*/
-#endif
-
return (sal_True);
}