From 9c48aaa7f24279152acc7fef49fb6d8ae574510a Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Mon, 11 Mar 2013 15:10:15 -0400 Subject: [PATCH] Remove unused ResetTestAndSet function --- BPTCEncoder/src/BC7Compressor.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/BPTCEncoder/src/BC7Compressor.cpp b/BPTCEncoder/src/BC7Compressor.cpp index ceb040d..3d938a4 100755 --- a/BPTCEncoder/src/BC7Compressor.cpp +++ b/BPTCEncoder/src/BC7Compressor.cpp @@ -1531,10 +1531,6 @@ namespace BC7C static uint32 FetchAndAdd(uint32 *x) { return InterlockedIncrement(x)-1; } - - static void ResetTestAndSet(uint32 *x) { - *x = 0; - } #elif defined HAS_GCC_ATOMICS static uint32 TestAndSet(uint32 *x) { return __sync_lock_test_and_set(x, 1); @@ -1543,10 +1539,6 @@ namespace BC7C static uint32 FetchAndAdd(uint32 *x) { return __sync_fetch_and_add(x, 1); } - - static void ResetTestAndSet(uint32 *x) { - __sync_lock_release(x); - } #endif // Variables used for synchronization in threadsafe implementation.