[virt-tools-list] [PATCH virt-viewer 2/2] virt_viewer_window_resize: Remove more dead code

Hans de Goede hdegoede at redhat.com
Mon Sep 9 14:52:15 UTC 2013


Calling virt_viewer_display_set_desktop_size() with an unchanged size is a nop.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 src/virt-viewer-window.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 4273975..9011cc5 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -400,8 +400,6 @@ virt_viewer_window_queue_resize(VirtViewerWindow *self)
 static void
 virt_viewer_window_resize(VirtViewerWindow *self, gboolean keep_win_size)
 {
-    guint desktopWidth;
-    guint desktopHeight;
     VirtViewerWindowPrivate *priv = self->priv;
 
     if (!priv->auto_resize || priv->fullscreen)
@@ -413,12 +411,6 @@ virt_viewer_window_resize(VirtViewerWindow *self, gboolean keep_win_size)
         return;
     }
 
-    virt_viewer_display_get_desktop_size(VIRT_VIEWER_DISPLAY(priv->display),
-                                         &desktopWidth, &desktopHeight);
-
-    virt_viewer_display_set_desktop_size(VIRT_VIEWER_DISPLAY(priv->display),
-                                         desktopWidth, desktopHeight);
-
     if (!keep_win_size)
         virt_viewer_window_queue_resize(self);
 }
-- 
1.8.3.1




More information about the virt-tools-list mailing list