swc

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

commit d3cc348daaa0f1162ed6f28725c701e9f277a8ff
parent c4a42f202a5e3986c355ba888196872ce31bdf80
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 17 Jan 2014 19:00:41 -0800

surface: state_set_buffer doesn't need a return value

Diffstat:
Mlibswc/surface.c | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libswc/surface.c b/libswc/surface.c @@ -84,12 +84,9 @@ static void state_finish(struct swc_surface_state * state) * * @return: Whether or not the buffer was changed. */ -static bool state_set_buffer(struct swc_surface_state * state, +static void state_set_buffer(struct swc_surface_state * state, struct swc_buffer * buffer) { - if (buffer == state->buffer) - return false; - if (state->buffer) { /* No longer need to worry about the old buffer being destroyed. */ @@ -104,8 +101,6 @@ static bool state_set_buffer(struct swc_surface_state * state, } state->buffer = buffer; - - return true; } static void destroy(struct wl_client * client, struct wl_resource * resource)