[evolution-data-server] Remove e_return_data_book_error_val_if_fail() macro.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove e_return_data_book_error_val_if_fail() macro.
- Date: Mon, 1 Apr 2013 22:13:57 +0000 (UTC)
commit 6be6f7153fa9302e9b0a7a91c6243f0dff6d2d00
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Apr 1 17:49:32 2013 -0400
Remove e_return_data_book_error_val_if_fail() macro.
No longer used, and backends had been mainly misusing it anyway.
addressbook/libedata-book/e-data-book.h | 22 --------------------
.../libedata-book/libedata-book-sections.txt | 1 -
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book.h b/addressbook/libedata-book/e-data-book.h
index d4d51ce..8c56ea3 100644
--- a/addressbook/libedata-book/e-data-book.h
+++ b/addressbook/libedata-book/e-data-book.h
@@ -95,28 +95,6 @@ GError * e_data_book_create_error_fmt (EDataBookStatus status,
const gchar * e_data_book_status_to_string (EDataBookStatus status);
-/**
- * e_return_data_book_error_val_if_fail:
- *
- * Same as e_return_data_book_error_if_fail(), only returns FALSE on a failure
- *
- * Since: 3.2
- **/
-#define e_return_data_book_error_val_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_BOOK_ERROR, (_code), \
- "file %s: line %d (%s): assertion `%s' failed", \
- __FILE__, __LINE__, G_STRFUNC, #expr); \
- return FALSE; \
- } \
- } G_STMT_END
-
GType e_data_book_get_type (void) G_GNUC_CONST;
EDataBook * e_data_book_new (struct _EBookBackend *backend,
GDBusConnection *connection,
diff --git a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
index 9b17b34..606deb3 100644
--- a/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
+++ b/docs/reference/addressbook/libedata-book/libedata-book-sections.txt
@@ -271,7 +271,6 @@ E_DATA_BOOK_ERROR
e_data_book_create_error
e_data_book_create_error_fmt
e_data_book_status_to_string
-e_return_data_book_error_val_if_fail
e_data_book_new
e_data_book_ref_backend
e_data_book_get_connection
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]