diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-03-05 16:22:07 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-07 20:33:12 +0100 |
commit | 1b48cd0c0eee4500275ed839d0aa7a9eaaa61c0b (patch) | |
tree | 12915f2e7f006b8281cdd9fd3ee3ae3db998674e | |
parent | e2b892b4173160cbb6e3afafb879470d539aba65 (diff) |
virt-viewer-window: Remove useless tests for priv->window != NULL
priv->window gets set on init and never unset, so there is no need to check
for it.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | src/virt-viewer-window.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c index 86a0e6d..2153eab 100644 --- a/src/virt-viewer-window.c +++ b/src/virt-viewer-window.c @@ -324,7 +324,7 @@ virt_viewer_window_desktop_resize(VirtViewerDisplay *display G_GNUC_UNUSED, VirtViewerWindow *self) { VirtViewerWindowPrivate *priv = self->priv; - if (priv->auto_resize && priv->window && !priv->fullscreen) + if (priv->auto_resize && !priv->fullscreen) virt_viewer_window_resize(self); } @@ -576,9 +576,6 @@ virt_viewer_window_disable_modifiers(VirtViewerWindow *self) GSList *accels; int i; - if (!priv->window) - return; - if (!priv->accel_enabled) return; @@ -615,9 +612,6 @@ virt_viewer_window_enable_modifiers(VirtViewerWindow *self) GSList *accels; int i; - if (!priv->window) - return; - if (priv->accel_enabled) return; |