1
0
Fork 0

clutter/paint-node: Remove unnecessary NULL check in get_framebuffer()

The only way we would ever get NULL there is if the node passed to the
function is NULL, and that is invalid input to begin with.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/935
This commit is contained in:
Jonas Ådahl 2019-11-22 09:36:26 +01:00 committed by Georges Basile Stavracas Neto
parent 8ce3b3d99e
commit 5145b33e01

View file

@ -1213,9 +1213,6 @@ clutter_paint_node_get_framebuffer (ClutterPaintNode *node)
ClutterPaintNode *root = clutter_paint_node_get_root (node);
ClutterPaintNodeClass *klass;
if (root == NULL)
return NULL;
klass = CLUTTER_PAINT_NODE_GET_CLASS (root);
if (klass->get_framebuffer != NULL)
return klass->get_framebuffer (root);