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:
parent
8ce3b3d99e
commit
5145b33e01
@ -1213,9 +1213,6 @@ clutter_paint_node_get_framebuffer (ClutterPaintNode *node)
|
|||||||
ClutterPaintNode *root = clutter_paint_node_get_root (node);
|
ClutterPaintNode *root = clutter_paint_node_get_root (node);
|
||||||
ClutterPaintNodeClass *klass;
|
ClutterPaintNodeClass *klass;
|
||||||
|
|
||||||
if (root == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
klass = CLUTTER_PAINT_NODE_GET_CLASS (root);
|
klass = CLUTTER_PAINT_NODE_GET_CLASS (root);
|
||||||
if (klass->get_framebuffer != NULL)
|
if (klass->get_framebuffer != NULL)
|
||||||
return klass->get_framebuffer (root);
|
return klass->get_framebuffer (root);
|
||||||
|
Loading…
Reference in New Issue
Block a user