wayland: Remove self assignment
authorJonas Ådahl <jadahl@gmail.com>
Mon, 20 Mar 2017 13:37:10 +0000 (21:37 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 8 May 2017 21:51:41 +0000 (17:51 -0400)
Don't assign the value of a variable to itself. It was added just for
clarity, but it makes coverity complain, so remove it.

https://bugzilla.gnome.org/show_bug.cgi?id=780301

gdk/wayland/gdkwindow-wayland.c

index f8a377f22e39c3a59f26a52c8f6db4220e245269..f535e4c0e8a7d2316b4c1edcc27eddf8686e867d 100644 (file)
@@ -1794,19 +1794,14 @@ calculate_popup_rect (GdkWindow    *window,
     {
     case GDK_GRAVITY_STATIC:
     case GDK_GRAVITY_NORTH_WEST:
-      x = x;
-      y = y;
       break;
     case GDK_GRAVITY_NORTH:
       x -= geometry.width / 2;
-      y = y;
       break;
     case GDK_GRAVITY_NORTH_EAST:
       x -= geometry.width;
-      y = y;
       break;
     case GDK_GRAVITY_WEST:
-      x = x;
       y -= geometry.height / 2;
       break;
     case GDK_GRAVITY_CENTER:
@@ -1818,7 +1813,6 @@ calculate_popup_rect (GdkWindow    *window,
       y -= geometry.height / 2;
       break;
     case GDK_GRAVITY_SOUTH_WEST:
-      x = x;
       y -= geometry.height;
       break;
     case GDK_GRAVITY_SOUTH: