swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 9bdc791eba0118797827944aeaa6c4873e0889a7
parent f9339362d726ee393a366cedab9615765997af88
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 20 Jan 2014 15:22:26 -0800

util: Remove obsolete swc_double_buffer

Diffstat:
Mlibswc/util.h | 25-------------------------
1 file changed, 0 insertions(+), 25 deletions(-)

diff --git a/libswc/util.h b/libswc/util.h @@ -108,30 +108,5 @@ static inline void swc_array_remove(struct wl_array * array, array->size -= size; } -/* Double Buffers */ -struct swc_double_buffer -{ - void * buffers[2]; - uint8_t front; -}; - -static inline void * swc_double_buffer_front - (struct swc_double_buffer * double_buffer) -{ - return double_buffer->buffers[double_buffer->front]; -} - -static inline void * swc_double_buffer_back - (struct swc_double_buffer * double_buffer) -{ - return double_buffer->buffers[double_buffer->front ^ 1]; -} - -static inline void swc_double_buffer_swap - (struct swc_double_buffer * double_buffer) -{ - double_buffer->front ^= 1; -} - #endif