[Libreoffice-commits] .: sal/osl sal/systools

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sun Oct 17 15:06:14 PDT 2010


 sal/osl/w32/module.cxx               |    2 --
 sal/systools/win32/uwinapi/Uwinapi.h |    5 -----
 2 files changed, 7 deletions(-)

New commits:
commit a88d859063ca856025074423f21516647a54d987
Author: Kenneth Venken <kenneth.venken at gmail.com>
Date:   Sun Oct 17 16:59:18 2010 -0500

    remove unused macro bufsizeof

diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 57ec786..ad67487 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -393,8 +393,6 @@ typedef BOOL (WINAPI *GetModuleInformation_PROC)(
   DWORD cb                 // size of the structure
 );
 
-#define bufsizeof(buffer) (sizeof(buffer) / sizeof((buffer)[0]))
-
 /* This version can fail because PSAPI.DLL is not always part of NT 4 despite MSDN Libary 6.0a say so */
 
 static sal_Bool SAL_CALL _osl_addressGetModuleURL_NT( void *pv, rtl_uString **pustrURL )
diff --git a/sal/systools/win32/uwinapi/Uwinapi.h b/sal/systools/win32/uwinapi/Uwinapi.h
index 63ca775..53983c0 100644
--- a/sal/systools/win32/uwinapi/Uwinapi.h
+++ b/sal/systools/win32/uwinapi/Uwinapi.h
@@ -47,11 +47,6 @@ EXTERN_C WINBASEAPI LPWSTR WINAPI lstrrchrW( LPCWSTR lpString, WCHAR c );
 #define lstrchr		lstrchrA
 #endif
 
-// macro that calculates the count of elements of a static array
-
-#define bufsizeof(buf)	(sizeof(buf) / sizeof((buf)[0]))
-
-
 #define IsValidHandle(Handle)	((DWORD)(Handle) + 1 > 1)
 
 #ifdef __cplusplus


More information about the Libreoffice-commits mailing list