[Libreoffice-commits] .: sal/osl

David Tardon dtardon at kemper.freedesktop.org
Wed Jun 22 04:04:46 PDT 2011


 sal/osl/unx/interlck.c |   11 -----------
 1 file changed, 11 deletions(-)

New commits:
commit 432c014c2773a2cc87fc58d5870b53f5854f3393
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Jun 22 13:03:24 2011 +0200

    remove duplicate code

diff --git a/sal/osl/unx/interlck.c b/sal/osl/unx/interlck.c
index e5bb3ea..a32f67c 100644
--- a/sal/osl/unx/interlck.c
+++ b/sal/osl/unx/interlck.c
@@ -149,17 +149,6 @@ oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount*
     return --nCount;
 #endif
 }
-
-#elif ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 ))
-oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount)
-{
-    return __sync_add_and_fetch(pCount, 1);
-}
-
-oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount* pCount)
-{
-    return __sync_sub_and_fetch(pCount, 1);
-}
 #elif ( __GNUC__ > 4 ) || (( __GNUC__ == 4) && ( __GNUC_MINOR__ >= 4 ))
 oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount* pCount)
 {


More information about the Libreoffice-commits mailing list