paint_volume: assert non-NULL pv in _volume_copy

Instead of carefully checking if the user passes NULL to
clutter_paint_volume_copy we now simply use g_return_val_if_fail.
This commit is contained in:
Robert Bragg 2010-09-08 21:01:37 +01:00
parent 3040b140bc
commit fd41024d29

View File

@ -139,9 +139,7 @@ clutter_paint_volume_copy (const ClutterPaintVolume *pv)
{
ClutterPaintVolume *copy;
/* XXX: can we just g_return_val_if_fail instead‽ */
if (G_UNLIKELY (pv == NULL))
return NULL;
g_return_val_if_fail (pv != NULL, NULL);
copy = g_slice_dup (ClutterPaintVolume, pv);
if (copy->actor)