[devhelp] Book: remove deprecated functions
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Book: remove deprecated functions
- Date: Sun, 30 Apr 2017 09:21:07 +0000 (UTC)
commit 22fcfb706d4d0801ec04e33dd786124744b4892a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Apr 30 11:07:19 2017 +0200
Book: remove deprecated functions
Those functions are deprecated since 3.18 and nobody complained. There
has already been an API break this cycle, see
commit 827d74c3de2ef34f87df921682286909fb0d50b1 (make dh-error.h
private). So we can get rid of APIs that are deprecated since several
development cycles.
docs/reference/devhelp-sections.txt | 2 -
src/dh-book.c | 53 -----------------------------------
src/dh-book.h | 9 +-----
3 files changed, 1 insertions(+), 63 deletions(-)
---
diff --git a/docs/reference/devhelp-sections.txt b/docs/reference/devhelp-sections.txt
index 8428502..c4f2099 100644
--- a/docs/reference/devhelp-sections.txt
+++ b/docs/reference/devhelp-sections.txt
@@ -79,9 +79,7 @@ dh_book_get_path
dh_book_get_enabled
dh_book_set_enabled
dh_book_cmp_by_path
-dh_book_cmp_by_path_str
dh_book_cmp_by_name
-dh_book_cmp_by_name_str
dh_book_cmp_by_title
<SUBSECTION Standard>
DhBookClass
diff --git a/src/dh-book.c b/src/dh-book.c
index 5ab53c8..dc931d6 100644
--- a/src/dh-book.c
+++ b/src/dh-book.c
@@ -569,31 +569,6 @@ dh_book_cmp_by_path (DhBook *a,
}
/**
- * dh_book_cmp_by_path_str:
- * @a: a #DhBook.
- * @b_path: a path to a book.
- *
- * Compares the paths of the #DhBook @a with @b_path.
- *
- * Returns: an integer less than, equal to, or greater than zero, if the path of
- * @a is <, == or > than @b_path.
- * Deprecated: 3.18: Use dh_book_cmp_by_path() instead.
- */
-gint
-dh_book_cmp_by_path_str (DhBook *a,
- const gchar *b_path)
-{
- DhBookPrivate *priv_a;
-
- if (a == NULL)
- return -1;
-
- priv_a = dh_book_get_instance_private (a);
-
- return g_strcmp0 (priv_a->path, b_path);
-}
-
-/**
* dh_book_cmp_by_name:
* @a: a #DhBook.
* @b: a #DhBook.
@@ -623,34 +598,6 @@ dh_book_cmp_by_name (DhBook *a,
}
/**
- * dh_book_cmp_by_name_str:
- * @a: a #DhBook object
- * @b_name: a path to a book
- *
- * Compare the name of the #DhBook a with @b_name.
- *
- * Returns: an integer less than, equal to, or greater than zero, if the name of
- * @a is <, == or > than @b_name.
- * Deprecated: 3.18: Use dh_book_cmp_by_name() instead.
- */
-gint
-dh_book_cmp_by_name_str (DhBook *a,
- const gchar *b_name)
-{
- DhBookPrivate *priv_a;
-
- if (a == NULL)
- return -1;
-
- priv_a = dh_book_get_instance_private (a);
-
- if (priv_a->name == NULL || b_name == NULL)
- return -1;
-
- return g_ascii_strcasecmp (priv_a->name, b_name);
-}
-
-/**
* dh_book_cmp_by_title:
* @a: a #DhBook.
* @b: a #DhBook.
diff --git a/src/dh-book.h b/src/dh-book.h
index 7ace337..3393e05 100644
--- a/src/dh-book.h
+++ b/src/dh-book.h
@@ -56,20 +56,13 @@ const gchar *dh_book_get_path (DhBook *book);
gboolean dh_book_get_enabled (DhBook *book);
void dh_book_set_enabled (DhBook *book,
gboolean enabled);
+
gint dh_book_cmp_by_path (DhBook *a,
DhBook *b);
-G_DEPRECATED
-gint dh_book_cmp_by_path_str (DhBook *a,
- const gchar *b_path);
-
gint dh_book_cmp_by_name (DhBook *a,
DhBook *b);
-G_DEPRECATED
-gint dh_book_cmp_by_name_str (DhBook *a,
- const gchar *b_name);
-
gint dh_book_cmp_by_title (DhBook *a,
DhBook *b);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]