summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-11-26 11:52:55 +0000
committerRobert Bragg <robert@linux.intel.com>2013-01-02 17:31:57 +0000
commit3a29b91810117223993ffde79c52adb592b7d7d0 (patch)
treefee3d82653cf38e6d15aa9370646570e6f67cd12
parent1fa7c0f10a8a03043e3c75cb079a49625df098b7 (diff)
downloadcogl-3a29b91810117223993ffde79c52adb592b7d7d0.tar.gz
texture: remove unused cogl_texture_get_max_waste
This removes cogl_texture_get_max_waste which wasn't used internally anywhere and it doesn't really seem like a meaningful thing for applications to query. Reviewed-by: Neil Roberts <neil@linux.intel.com>
-rw-r--r--cogl/cogl-atlas-texture.c10
-rw-r--r--cogl/cogl-sub-texture.c9
-rw-r--r--cogl/cogl-texture-2d-sliced.c9
-rw-r--r--cogl/cogl-texture-2d.c7
-rw-r--r--cogl/cogl-texture-3d.c7
-rw-r--r--cogl/cogl-texture-private.h2
-rw-r--r--cogl/cogl-texture-rectangle.c7
-rw-r--r--cogl/cogl-texture.c6
-rw-r--r--cogl/cogl-texture.h12
-rw-r--r--cogl/cogl.symbols1
-rw-r--r--cogl/winsys/cogl-texture-pixmap-x11.c10
11 files changed, 0 insertions, 80 deletions
diff --git a/cogl/cogl-atlas-texture.c b/cogl/cogl-atlas-texture.c
index f37a7ccb..bbf08e64 100644
--- a/cogl/cogl-atlas-texture.c
+++ b/cogl/cogl-atlas-texture.c
@@ -284,15 +284,6 @@ _cogl_atlas_texture_free (CoglAtlasTexture *atlas_tex)
_cogl_texture_free (COGL_TEXTURE (atlas_tex));
}
-static int
-_cogl_atlas_texture_get_max_waste (CoglTexture *tex)
-{
- CoglAtlasTexture *atlas_tex = COGL_ATLAS_TEXTURE (tex);
-
- /* Forward on to the sub texture */
- return cogl_texture_get_max_waste (atlas_tex->sub_texture);
-}
-
static CoglBool
_cogl_atlas_texture_is_sliced (CoglTexture *tex)
{
@@ -897,7 +888,6 @@ cogl_atlas_texture_vtable =
_cogl_atlas_texture_set_region,
NULL, /* get_data */
_cogl_atlas_texture_foreach_sub_texture_in_region,
- _cogl_atlas_texture_get_max_waste,
_cogl_atlas_texture_is_sliced,
_cogl_atlas_texture_can_hardware_repeat,
_cogl_atlas_texture_transform_coords_to_gl,
diff --git a/cogl/cogl-sub-texture.c b/cogl/cogl-sub-texture.c
index cb9da393..4c3e376f 100644
--- a/cogl/cogl-sub-texture.c
+++ b/cogl/cogl-sub-texture.c
@@ -274,14 +274,6 @@ cogl_sub_texture_get_parent (CoglSubTexture *sub_texture)
return sub_texture->next_texture;
}
-static int
-_cogl_sub_texture_get_max_waste (CoglTexture *tex)
-{
- CoglSubTexture *sub_tex = COGL_SUB_TEXTURE (tex);
-
- return cogl_texture_get_max_waste (sub_tex->full_texture);
-}
-
static CoglBool
_cogl_sub_texture_is_sliced (CoglTexture *tex)
{
@@ -446,7 +438,6 @@ cogl_sub_texture_vtable =
_cogl_sub_texture_set_region,
NULL, /* get_data */
_cogl_sub_texture_foreach_sub_texture_in_region,
- _cogl_sub_texture_get_max_waste,
_cogl_sub_texture_is_sliced,
_cogl_sub_texture_can_hardware_repeat,
_cogl_sub_texture_transform_coords_to_gl,
diff --git a/cogl/cogl-texture-2d-sliced.c b/cogl/cogl-texture-2d-sliced.c
index a8b0b763..2dbe4ae6 100644
--- a/cogl/cogl-texture-2d-sliced.c
+++ b/cogl/cogl-texture-2d-sliced.c
@@ -1157,14 +1157,6 @@ _cogl_texture_2d_sliced_is_foreign (CoglTexture *tex)
return _cogl_texture_is_foreign (COGL_TEXTURE (slice_tex));
}
-static int
-_cogl_texture_2d_sliced_get_max_waste (CoglTexture *tex)
-{
- CoglTexture2DSliced *tex_2ds = COGL_TEXTURE_2D_SLICED (tex);
-
- return tex_2ds->max_waste;
-}
-
static CoglBool
_cogl_texture_2d_sliced_is_sliced (CoglTexture *tex)
{
@@ -1421,7 +1413,6 @@ cogl_texture_2d_sliced_vtable =
_cogl_texture_2d_sliced_set_region,
NULL, /* get_data */
_cogl_texture_2d_sliced_foreach_sub_texture_in_region,
- _cogl_texture_2d_sliced_get_max_waste,
_cogl_texture_2d_sliced_is_sliced,
_cogl_texture_2d_sliced_can_hardware_repeat,
_cogl_texture_2d_sliced_transform_coords_to_gl,
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index 7492e128..8441ac81 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -364,12 +364,6 @@ _cogl_texture_2d_copy_from_framebuffer (CoglTexture2D *tex_2d,
tex_2d->mipmaps_dirty = TRUE;
}
-static int
-_cogl_texture_2d_get_max_waste (CoglTexture *tex)
-{
- return -1;
-}
-
static CoglBool
_cogl_texture_2d_is_sliced (CoglTexture *tex)
{
@@ -553,7 +547,6 @@ cogl_texture_2d_vtable =
_cogl_texture_2d_set_region,
_cogl_texture_2d_get_data,
NULL, /* foreach_sub_texture_in_region */
- _cogl_texture_2d_get_max_waste,
_cogl_texture_2d_is_sliced,
_cogl_texture_2d_can_hardware_repeat,
_cogl_texture_2d_transform_coords_to_gl,
diff --git a/cogl/cogl-texture-3d.c b/cogl/cogl-texture-3d.c
index b40448a7..6453f17a 100644
--- a/cogl/cogl-texture-3d.c
+++ b/cogl/cogl-texture-3d.c
@@ -468,12 +468,6 @@ cogl_texture_3d_new_from_data (CoglContext *context,
return ret;
}
-static int
-_cogl_texture_3d_get_max_waste (CoglTexture *tex)
-{
- return -1;
-}
-
static CoglBool
_cogl_texture_3d_is_sliced (CoglTexture *tex)
{
@@ -668,7 +662,6 @@ cogl_texture_3d_vtable =
_cogl_texture_3d_set_region,
_cogl_texture_3d_get_data,
NULL, /* foreach_sub_texture_in_region */
- _cogl_texture_3d_get_max_waste,
_cogl_texture_3d_is_sliced,
_cogl_texture_3d_can_hardware_repeat,
_cogl_texture_3d_transform_coords_to_gl,
diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h
index 92ddae2d..2dfbf207 100644
--- a/cogl/cogl-texture-private.h
+++ b/cogl/cogl-texture-private.h
@@ -97,8 +97,6 @@ struct _CoglTextureVtable
CoglMetaTextureCallback callback,
void *user_data);
- int (* get_max_waste) (CoglTexture *tex);
-
CoglBool (* is_sliced) (CoglTexture *tex);
CoglBool (* can_hardware_repeat) (CoglTexture *tex);
diff --git a/cogl/cogl-texture-rectangle.c b/cogl/cogl-texture-rectangle.c
index a1f978f6..aeb905a7 100644
--- a/cogl/cogl-texture-rectangle.c
+++ b/cogl/cogl-texture-rectangle.c
@@ -453,12 +453,6 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
return tex_rect;
}
-static int
-_cogl_texture_rectangle_get_max_waste (CoglTexture *tex)
-{
- return -1;
-}
-
static CoglBool
_cogl_texture_rectangle_is_sliced (CoglTexture *tex)
{
@@ -670,7 +664,6 @@ cogl_texture_rectangle_vtable =
_cogl_texture_rectangle_set_region,
_cogl_texture_rectangle_get_data,
NULL, /* foreach_sub_texture_in_region */
- _cogl_texture_rectangle_get_max_waste,
_cogl_texture_rectangle_is_sliced,
_cogl_texture_rectangle_can_hardware_repeat,
_cogl_texture_rectangle_transform_coords_to_gl,
diff --git a/cogl/cogl-texture.c b/cogl/cogl-texture.c
index ef795c04..5a90f296 100644
--- a/cogl/cogl-texture.c
+++ b/cogl/cogl-texture.c
@@ -272,12 +272,6 @@ cogl_texture_get_format (CoglTexture *texture)
}
int
-cogl_texture_get_max_waste (CoglTexture *texture)
-{
- return texture->vtable->get_max_waste (texture);
-}
-
-int
_cogl_texture_get_n_levels (CoglTexture *texture)
{
int width = cogl_texture_get_width (texture);
diff --git a/cogl/cogl-texture.h b/cogl/cogl-texture.h
index 44f16c62..530164ac 100644
--- a/cogl/cogl-texture.h
+++ b/cogl/cogl-texture.h
@@ -299,18 +299,6 @@ CoglPixelFormat
cogl_texture_get_format (CoglTexture *texture);
/**
- * cogl_texture_get_max_waste:
- * @texture: a #CoglTexture pointer.
- *
- * Queries the maximum wasted (unused) pixels in one dimension of a GPU side
- * texture.
- *
- * Return value: the maximum waste
- */
-int
-cogl_texture_get_max_waste (CoglTexture *texture);
-
-/**
* cogl_texture_is_sliced:
* @texture: a #CoglTexture pointer.
*
diff --git a/cogl/cogl.symbols b/cogl/cogl.symbols
index 3ecd020a..b272d622 100644
--- a/cogl/cogl.symbols
+++ b/cogl/cogl.symbols
@@ -550,7 +550,6 @@ cogl_texture_get_data
cogl_texture_get_format
cogl_texture_get_gl_texture
cogl_texture_get_height
-cogl_texture_get_max_waste
cogl_texture_get_width
cogl_texture_is_sliced
cogl_texture_new_from_bitmap
diff --git a/cogl/winsys/cogl-texture-pixmap-x11.c b/cogl/winsys/cogl-texture-pixmap-x11.c
index 0d5eb647..792d366e 100644
--- a/cogl/winsys/cogl-texture-pixmap-x11.c
+++ b/cogl/winsys/cogl-texture-pixmap-x11.c
@@ -824,15 +824,6 @@ _cogl_texture_pixmap_x11_foreach_sub_texture_in_region
user_data);
}
-static int
-_cogl_texture_pixmap_x11_get_max_waste (CoglTexture *tex)
-{
- CoglTexturePixmapX11 *tex_pixmap = COGL_TEXTURE_PIXMAP_X11 (tex);
- CoglTexture *child_tex = _cogl_texture_pixmap_x11_get_texture (tex_pixmap);
-
- return cogl_texture_get_max_waste (child_tex);
-}
-
static CoglBool
_cogl_texture_pixmap_x11_is_sliced (CoglTexture *tex)
{
@@ -1016,7 +1007,6 @@ cogl_texture_pixmap_x11_vtable =
_cogl_texture_pixmap_x11_set_region,
_cogl_texture_pixmap_x11_get_data,
_cogl_texture_pixmap_x11_foreach_sub_texture_in_region,
- _cogl_texture_pixmap_x11_get_max_waste,
_cogl_texture_pixmap_x11_is_sliced,
_cogl_texture_pixmap_x11_can_hardware_repeat,
_cogl_texture_pixmap_x11_transform_coords_to_gl,