[gnome-notes] manager: Remove unused code
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] manager: Remove unused code
- Date: Tue, 15 Jun 2021 03:17:16 +0000 (UTC)
commit 93384a652f49b935ef8f7b7e7949df0f125a9056
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jun 5 13:03:54 2021 +0530
manager: Remove unused code
src/libbiji/biji-manager.c | 34 ----------------------------------
src/libbiji/biji-manager.h | 10 ----------
2 files changed, 44 deletions(-)
---
diff --git a/src/libbiji/biji-manager.c b/src/libbiji/biji-manager.c
index 3031e359..c8793942 100644
--- a/src/libbiji/biji-manager.c
+++ b/src/libbiji/biji-manager.c
@@ -684,28 +684,6 @@ biji_manager_get_items (BijiManager *self,
return list;
}
-
-static void
-_delete_item (gpointer data,
- gpointer user_data)
-{
- biji_item_delete (BIJI_ITEM (data));
-}
-
-
-/* Do not g_list_free_full here.
- * We only unref items where deletion works */
-void
-biji_manager_empty_bin (BijiManager *self)
-{
- GList *items;
-
- items = g_hash_table_get_values (self->archives);
- g_list_foreach (items, _delete_item, NULL);
- g_list_free (items);
-}
-
-
BijiItem *
biji_manager_get_item_at_path (BijiManager *self, const gchar *path)
{
@@ -723,18 +701,6 @@ biji_manager_get_item_at_path (BijiManager *self, const gchar *path)
return retval;
}
-void
-biji_manager_remove_item_at_path (BijiManager *self,
- const char *path)
-{
- BijiItem *item = NULL;
-
- item = biji_manager_get_item_at_path (self, path);
-
- if (item)
- on_item_deleted_cb (item, self);
-}
-
BijiManager *
biji_manager_new (GFile *location,
GdkRGBA *color)
diff --git a/src/libbiji/biji-manager.h b/src/libbiji/biji-manager.h
index 4b564409..bff1891c 100644
--- a/src/libbiji/biji-manager.h
+++ b/src/libbiji/biji-manager.h
@@ -85,10 +85,6 @@ void biji_manager_notify_changed (BijiManager *mana
BijiItem *biji_manager_get_item_at_path (BijiManager *manager,
const gchar *path);
-void biji_manager_remove_item_at_path (BijiManager *manager,
- const char *path);
-
-
/* Get all items, either notes or notebooks
* Free the GList, not its content */
@@ -96,12 +92,6 @@ void biji_manager_remove_item_at_path (BijiManager *manager,
GList *biji_manager_get_items (BijiManager *manager,
BijiItemsGroup group);
-
-
-void biji_manager_empty_bin (BijiManager *manager);
-
-
-
BijiNoteObj *biji_manager_note_new (BijiManager *manager,
const gchar *str,
const gchar *provider_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]