[evolution-data-server] Remove e_return_data_cal_error_if_fail() macro.



commit 630e9d6a41d3ecde2b1ce0b1dfb80fa922e1fa7f
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Apr 1 17:55:40 2013 -0400

    Remove e_return_data_cal_error_if_fail() macro.
    
    No longer used, and backends had been mainly misusing it anyway.

 calendar/libedata-cal/e-data-cal.h                 |   20 --------------------
 .../libedata-cal/libedata-cal-sections.txt         |    1 -
 2 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/calendar/libedata-cal/e-data-cal.h b/calendar/libedata-cal/e-data-cal.h
index c4e77c5..2e396e7 100644
--- a/calendar/libedata-cal/e-data-cal.h
+++ b/calendar/libedata-cal/e-data-cal.h
@@ -55,26 +55,6 @@
 G_BEGIN_DECLS
 
 /**
- * e_return_data_cal_error_if_fail:
- *
- * Since: 2.32
- **/
-#define e_return_data_cal_error_if_fail(expr, _code)                           \
-       G_STMT_START {                                                          \
-               if (G_LIKELY (expr)) {                                          \
-               } else {                                                        \
-                       g_log (G_LOG_DOMAIN,                                    \
-                               G_LOG_LEVEL_CRITICAL,                           \
-                               "file %s: line %d (%s): assertion `%s' failed", \
-                               __FILE__, __LINE__, G_STRFUNC, #expr);          \
-                       g_set_error (error, E_DATA_CAL_ERROR, (_code),          \
-                               "file %s: line %d (%s): assertion `%s' failed", \
-                               __FILE__, __LINE__, G_STRFUNC, #expr);          \
-                       return;                                                 \
-               }                                                               \
-       } G_STMT_END
-
-/**
  * e_return_data_cal_error_val_if_fail:
  *
  * Same as e_return_data_cal_error_if_fail(), only returns FALSE on a failure
diff --git a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt 
b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
index 7d6330e..569213a 100644
--- a/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
+++ b/docs/reference/calendar/libedata-cal/libedata-cal-sections.txt
@@ -251,7 +251,6 @@ EDataCalCallStatus
 e_data_cal_create_error
 e_data_cal_create_error_fmt
 e_data_cal_status_to_string
-e_return_data_cal_error_if_fail
 e_return_data_cal_error_val_if_fail
 e_data_cal_new
 e_data_cal_ref_backend


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