[gtk+/gtk-3-22] wayland: Remove self assignment
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] wayland: Remove self assignment
- Date: Mon, 8 May 2017 21:51:54 +0000 (UTC)
commit 64312d79f755536da7d3dc6c39ac19acc5535267
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 f8a377f..f535e4c 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]