[Libreoffice-commits] core.git: sal/osl
Stephan Bergmann
sbergman at redhat.com
Fri Mar 4 11:07:39 UTC 2016
sal/osl/unx/socket.cxx | 20 --------------------
1 file changed, 20 deletions(-)
New commits:
commit 443208dce74746c0a7771d3bc55a5d61de5260bf
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Fri Mar 4 12:07:15 2016 +0100
Remove write-only g_nSocket* debug vars
Change-Id: Ie8a1d015242450094928863013030b4cb0bb1f4e
diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx
index 1065c79..8b7feb4 100644
--- a/sal/osl/unx/socket.cxx
+++ b/sal/osl/unx/socket.cxx
@@ -429,14 +429,6 @@ oslSocketResult SAL_CALL osl_psz_getDottedInetAddrOfSocketAddr (
void SAL_CALL osl_psz_getLastSocketErrorDescription (
oslSocket Socket, sal_Char* pBuffer, sal_uInt32 BufferSize);
-#if OSL_DEBUG_LEVEL > 0
-static sal_uInt32 g_nSocketImpl = 0;
-static sal_uInt32 g_nSocketAddr = 0;
-
-/* sorry, must be implemented otherwise */
-
-#endif /* OSL_DEBUG_LEVEL */
-
oslSocket __osl_createSocketImpl(int Socket)
{
oslSocket pSocket;
@@ -451,9 +443,6 @@ oslSocket __osl_createSocketImpl(int Socket)
pSocket->m_bIsAccepting = false;
#endif
-#if OSL_DEBUG_LEVEL > 0
- g_nSocketImpl ++;
-#endif
return pSocket;
}
@@ -461,17 +450,11 @@ void __osl_destroySocketImpl(oslSocket Socket)
{
if ( Socket != nullptr)
free(Socket);
-#if OSL_DEBUG_LEVEL > 0
- g_nSocketImpl --;
-#endif
}
static oslSocketAddr __osl_createSocketAddr()
{
oslSocketAddr pAddr = static_cast<oslSocketAddr>(rtl_allocateZeroMemory( sizeof( struct oslSocketAddrImpl )));
-#if OSL_DEBUG_LEVEL > 0
- g_nSocketAddr ++;
-#endif
return pAddr;
}
@@ -509,9 +492,6 @@ static oslSocketAddr __osl_createSocketAddrFromSystem( struct sockaddr *pSystemS
static void __osl_destroySocketAddr( oslSocketAddr addr )
{
-#if OSL_DEBUG_LEVEL > 0
- g_nSocketAddr --;
-#endif
rtl_freeMemory( addr );
}
More information about the Libreoffice-commits
mailing list