[gnome-shell] calendar-server: Remove an unnecessary check
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar-server: Remove an unnecessary check
- Date: Thu, 7 Jul 2016 13:55:47 +0000 (UTC)
commit 61070e6ec013a2413d2320f105de987fb40fb14b
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 7 15:52:43 2016 +0200
calendar-server: Remove an unnecessary check
calendar_appointment_new() never returns %NULL, so no need to check
for it.
src/calendar-server/gnome-shell-calendar-server.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar-server/gnome-shell-calendar-server.c
b/src/calendar-server/gnome-shell-calendar-server.c
index 10e00f3..7874c40 100644
--- a/src/calendar-server/gnome-shell-calendar-server.c
+++ b/src/calendar-server/gnome-shell-calendar-server.c
@@ -692,9 +692,6 @@ app_load_events (App *app)
CalendarAppointment *appointment;
appointment = calendar_appointment_new (ical, cal, app->zone);
- if (appointment == NULL)
- continue;
-
calendar_appointment_generate_occurrences (appointment,
ical,
cal,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]