[gdm] daemon: drop dead code
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] daemon: drop dead code
- Date: Thu, 19 May 2011 03:17:40 +0000 (UTC)
commit 20ddf1aa6f455221c340d973f8e49d6a4e823147
Author: Ray Strode <rstrode redhat com>
Date: Wed May 18 01:33:47 2011 -0400
daemon: drop dead code
create_static_display checks for a NULL return value in a function
that can't return NULL.
This commit drops that check.
daemon/gdm-local-display-factory.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 73ab499..7ad27be 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -342,10 +342,6 @@ create_display (GdmLocalDisplayFactory *factory)
#else
display = gdm_static_display_new (num);
#endif
- if (display == NULL) {
- g_warning ("Unable to create display: %d", num);
- return NULL;
- }
/* FIXME: don't hardcode seat1? */
g_object_set (display, "seat-id", CK_SEAT1_PATH, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]