atomicity.h (__compare_and_swap): Remove unused function.
[gcc.git] / libstdc++-v3 / config / cpu / generic / bits / atomicity.h
index 36fcaf2de5bbd3fd2a3c892de2dd17ef4552bec2..fca2b83d5844c5f9119e1cc7128613f13dfe4878 100644 (file)
@@ -48,15 +48,4 @@ __atomic_add (_Atomic_word* __mem, int __val)
   *__mem += __val;
 }
 
-static inline int
-__attribute__ ((__unused__))
-__compare_and_swap (long *__p, long __oldval, long __newval)
-{
-  if (*__p != __oldval)
-    return 0;
-
-  *__p = __newval;
-  return 1;
-}
-
 #endif /* atomicity.h */