shaped-texture: Clean up some internals

These are internal vfuncs, they don't need prechecks.
This commit is contained in:
Jasper St. Pierre 2015-06-23 16:18:23 -07:00
parent 3962f1d982
commit 84baf4e181

View File

@ -498,11 +498,7 @@ meta_shaped_texture_get_preferred_width (ClutterActor *self,
gfloat *min_width_p, gfloat *min_width_p,
gfloat *natural_width_p) gfloat *natural_width_p)
{ {
MetaShapedTexturePrivate *priv; MetaShapedTexturePrivate *priv = META_SHAPED_TEXTURE (self)->priv;
g_return_if_fail (META_IS_SHAPED_TEXTURE (self));
priv = META_SHAPED_TEXTURE (self)->priv;
if (min_width_p) if (min_width_p)
*min_width_p = priv->tex_width; *min_width_p = priv->tex_width;
@ -517,11 +513,7 @@ meta_shaped_texture_get_preferred_height (ClutterActor *self,
gfloat *min_height_p, gfloat *min_height_p,
gfloat *natural_height_p) gfloat *natural_height_p)
{ {
MetaShapedTexturePrivate *priv; MetaShapedTexturePrivate *priv = META_SHAPED_TEXTURE (self)->priv;
g_return_if_fail (META_IS_SHAPED_TEXTURE (self));
priv = META_SHAPED_TEXTURE (self)->priv;
if (min_height_p) if (min_height_p)
*min_height_p = priv->tex_height; *min_height_p = priv->tex_height;