From eb9029504124daf4c032f027c2f068ec25548f3f Mon Sep 17 00:00:00 2001 From: Halton Huo Date: Mon, 4 Jan 2010 11:49:50 +0000 Subject: [PATCH] cogl-texture: Remove return in void functions http://bugzilla.o-hand.com/show_bug.cgi?id=1929 Signed-off-by: Emmanuele Bassi --- clutter/cogl/cogl/cogl-texture.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/clutter/cogl/cogl/cogl-texture.c b/clutter/cogl/cogl/cogl-texture.c index 5b3950bc3..085a23f5b 100644 --- a/clutter/cogl/cogl/cogl-texture.c +++ b/clutter/cogl/cogl/cogl-texture.c @@ -334,8 +334,6 @@ cogl_texture_get_max_waste (CoglHandle handle) tex = COGL_TEXTURE (handle); return tex->vtable->get_max_waste (tex); - - g_return_val_if_reached (0); } gboolean @@ -408,7 +406,7 @@ _cogl_texture_transform_coords_to_gl (CoglHandle handle, { CoglTexture *tex = COGL_TEXTURE (handle); - return tex->vtable->transform_coords_to_gl (tex, s, t); + tex->vtable->transform_coords_to_gl (tex, s, t); } GLenum @@ -446,7 +444,7 @@ _cogl_texture_set_filters (CoglHandle handle, tex = COGL_TEXTURE (handle); - return tex->vtable->set_filters (tex, min_filter, mag_filter); + tex->vtable->set_filters (tex, min_filter, mag_filter); } void @@ -459,7 +457,7 @@ _cogl_texture_ensure_mipmaps (CoglHandle handle) tex = COGL_TEXTURE (handle); - return tex->vtable->ensure_mipmaps (tex); + tex->vtable->ensure_mipmaps (tex); } gboolean