backend: simplify assert

We already checked that constraint is non-null.

https://bugzilla.gnome.org/show_bug.cgi?id=769054
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2016-07-21 21:12:16 +02:00 committed by Jonas Ådahl
parent 720cbc5e5f
commit 125cba7100

View File

@ -615,7 +615,7 @@ void
meta_backend_set_client_pointer_constraint (MetaBackend *backend,
MetaPointerConstraint *constraint)
{
g_assert (!constraint || (constraint && !backend->client_pointer_constraint));
g_assert (!constraint || !backend->client_pointer_constraint);
g_clear_object (&backend->client_pointer_constraint);
if (constraint)