summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-06-22 13:03:24 +0200
committerDavid Tardon <dtardon@redhat.com>2011-06-22 13:04:33 +0200
commit4d5aec6e8dc039cfb9fef8a96d625de4c98691da (patch)
tree1f9603a26a8f90f75169298e241abd5d606a30e5 /sal
parent8a1dc3f86e010cd0bc7ddf82b8c8e398569a5448 (diff)
remove duplicate code
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/interlck.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sal/osl/unx/interlck.c b/sal/osl/unx/interlck.c
index e5bb3ea1e431..a32f67c11985 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)
{