[evolution/wip/webkit2] Remove unneeded runtime warning from e-day-view.c::cancel_editing()



commit 4a9638d843790766fc76d3fd51c5ef5a2d3bc3ed
Author: Milan Crha <mcrha redhat com>
Date:   Fri Apr 1 18:27:08 2016 +0200

    Remove unneeded runtime warning from e-day-view.c::cancel_editing()

 calendar/gui/e-day-view.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 0d36119..9f378cc 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -7200,10 +7200,8 @@ cancel_editing (EDayView *day_view)
        day = day_view->editing_event_day;
        event_num = day_view->editing_event_num;
 
-       if (day == -1) {
-               g_warn_if_reached ();
+       if (day == -1)
                return;
-       }
 
        if (day == E_DAY_VIEW_LONG_EVENT) {
                if (!is_array_index_in_bounds (day_view->long_events, event_num))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]