summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2014-08-15 13:07:12 +0200
committerraveit65 <[email protected]>2017-08-28 16:04:01 +0200
commitd16ebefe945ddca508e2e7c7e360f671078cf5d3 (patch)
treeb9b2d00310414ba32fb102d308a55c09cee92335
parentc284fdd869066085c756f617ac6787abe06769c6 (diff)
downloadatril-d16ebefe945ddca508e2e7c7e360f671078cf5d3.tar.bz2
atril-d16ebefe945ddca508e2e7c7e360f671078cf5d3.tar.xz
libdocument: Make ev_mapping_list_remove void
There's no reason to return the EvMappingList since it can't be modified by this function.
-rw-r--r--libdocument/ev-mapping-list.c3
-rw-r--r--libdocument/ev-mapping-list.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/libdocument/ev-mapping-list.c b/libdocument/ev-mapping-list.c
index 6745d1d9..3916a115 100644
--- a/libdocument/ev-mapping-list.c
+++ b/libdocument/ev-mapping-list.c
@@ -165,14 +165,13 @@ ev_mapping_list_get_list (EvMappingList *mapping_list)
*
* Since: 3.14
*/
-EvMappingList *
+void
ev_mapping_list_remove (EvMappingList *mapping_list,
EvMapping *mapping)
{
mapping_list->list = g_list_remove (mapping_list->list, mapping);
mapping_list->data_destroy_func (mapping->data);
g_free (mapping);
- return mapping_list;
}
guint
diff --git a/libdocument/ev-mapping-list.h b/libdocument/ev-mapping-list.h
index bb9494fa..bdad4723 100644
--- a/libdocument/ev-mapping-list.h
+++ b/libdocument/ev-mapping-list.h
@@ -42,7 +42,7 @@ void ev_mapping_list_unref (EvMappingList *mapping_list);
guint ev_mapping_list_get_page (EvMappingList *mapping_list);
GList *ev_mapping_list_get_list (EvMappingList *mapping_list);
-EvMappingList *ev_mapping_list_remove (EvMappingList *mapping_list,
+void ev_mapping_list_remove (EvMappingList *mapping_list,
EvMapping *mapping);
EvMapping *ev_mapping_list_find (EvMappingList *mapping_list,
gconstpointer data);