[gtk+] wayland: Remove self assignment



commit 5c74afb2f150559291cfeb493a4861eeebdbb1cb
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Mon Mar 20 21:37:10 2017 +0800

    wayland: Remove self assignment
    
    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 |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index a6e4144..0361aa3 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1779,19 +1779,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:
@@ -1803,7 +1798,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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]