From 63cf470e07cae4b1cd2bdd2c1e3d8e8a8cba6854 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 16 Mar 2012 22:58:21 -0400 Subject: [PATCH] st-texture-cache: Remove an unused argument from create_default_texture https://bugzilla.gnome.org/show_bug.cgi?id=672273 --- src/st/st-texture-cache.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index 3c7a1c8e6..7f15bcafb 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -63,7 +63,7 @@ G_DEFINE_TYPE(StTextureCache, st_texture_cache, G_TYPE_OBJECT); * definitely don't want. Skip that by setting 0 opacity. */ static ClutterTexture * -create_default_texture (StTextureCache *self) +create_default_texture (void) { ClutterTexture * texture = CLUTTER_TEXTURE (clutter_texture_new ()); g_object_set (texture, "keep-aspect-ratio", TRUE, "opacity", 0, NULL); @@ -871,7 +871,7 @@ create_texture_and_ensure_request (StTextureCache *cache, AsyncTextureLoadData *pending; gboolean had_pending; - *texture = (ClutterActor *) create_default_texture (cache); + *texture = (ClutterActor *) create_default_texture (); clutter_actor_set_size (*texture, size, size); texdata = g_hash_table_lookup (cache->priv->keyed_cache, key); @@ -1006,7 +1006,7 @@ load_from_pixbuf (GdkPixbuf *pixbuf) int width = gdk_pixbuf_get_width (pixbuf); int height = gdk_pixbuf_get_height (pixbuf); - texture = create_default_texture (st_texture_cache_get_default ()); + texture = create_default_texture (); clutter_actor_set_size (CLUTTER_ACTOR (texture), width, height); @@ -1279,7 +1279,7 @@ st_texture_cache_load_uri_async (StTextureCache *cache, ClutterTexture *texture; AsyncTextureLoadData *data; - texture = create_default_texture (cache); + texture = create_default_texture (); data = g_new0 (AsyncTextureLoadData, 1); data->cache = cache; @@ -1406,7 +1406,7 @@ st_texture_cache_load_uri_sync (StTextureCache *cache, if (texdata == COGL_INVALID_HANDLE) return NULL; - texture = create_default_texture (cache); + texture = create_default_texture (); set_texture_cogl_texture (texture, texdata); cogl_handle_unref (texdata); @@ -1552,7 +1552,7 @@ st_texture_cache_load_from_raw (StTextureCache *cache, char *key; char *checksum; - texture = create_default_texture (cache); + texture = create_default_texture (); clutter_actor_set_size (CLUTTER_ACTOR (texture), size, size); /* In theory, two images of with different width and height could have the same