[gnome-calendar/gbsneto/timeline: 14/18] manager: Remove more unused API
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/gbsneto/timeline: 14/18] manager: Remove more unused API
- Date: Wed, 1 Apr 2020 21:10:41 +0000 (UTC)
commit 0e58a1105ada2ecae9babf49d58e7d21ccda1a8b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Mar 27 12:55:25 2020 -0300
manager: Remove more unused API
src/core/gcal-manager.c | 41 -----------------------------------------
src/core/gcal-manager.h | 7 -------
2 files changed, 48 deletions(-)
---
diff --git a/src/core/gcal-manager.c b/src/core/gcal-manager.c
index 1be90450..3eee92d8 100644
--- a/src/core/gcal-manager.c
+++ b/src/core/gcal-manager.c
@@ -93,7 +93,6 @@ enum
CALENDAR_ADDED,
CALENDAR_CHANGED,
CALENDAR_REMOVED,
- QUERY_COMPLETED,
NUM_SIGNALS
};
@@ -690,14 +689,6 @@ gcal_manager_class_init (GcalManagerClass *klass)
G_TYPE_NONE,
1,
GCAL_TYPE_CALENDAR);
-
- signals[QUERY_COMPLETED] = g_signal_new ("query-completed",
- GCAL_TYPE_MANAGER,
- G_SIGNAL_RUN_LAST,
- 0,
- NULL, NULL, NULL,
- G_TYPE_NONE,
- 0);
}
static void
@@ -803,38 +794,6 @@ gcal_manager_get_timeline (GcalManager *self)
return self->timeline;
}
-/**
- * gcal_manager_query_client_data:
- *
- * Queries for a specific data field of the #ECalClient
- *
- * Returns: (nullable)(transfer none): a string representing
- * the retrieved value.
- */
-gchar*
-gcal_manager_query_client_data (GcalManager *self,
- ESource *source,
- const gchar *field)
-{
- GcalCalendar *calendar;
- ECalClient *client;
- gchar *out;
-
- GCAL_ENTRY;
-
- g_return_val_if_fail (GCAL_IS_MANAGER (self), NULL);
-
- calendar = g_hash_table_lookup (self->clients, source);
-
- if (!calendar)
- GCAL_RETURN (NULL);
-
- client = gcal_calendar_get_client (calendar);
- g_object_get (client, field, &out, NULL);
-
- GCAL_RETURN (out);
-}
-
/**
* gcal_manager_add_source:
* @self: a #GcalManager
diff --git a/src/core/gcal-manager.h b/src/core/gcal-manager.h
index 79ba9105..1d43da4a 100644
--- a/src/core/gcal-manager.h
+++ b/src/core/gcal-manager.h
@@ -45,13 +45,6 @@ void gcal_manager_set_default_calendar (GcalManager
GcalTimeline* gcal_manager_get_timeline (GcalManager *self);
-void gcal_manager_set_query (GcalManager *self,
- const gchar *query);
-
-gchar* gcal_manager_query_client_data (GcalManager *self,
- ESource *source,
- const gchar *field);
-
void gcal_manager_refresh (GcalManager *self);
void gcal_manager_create_event (GcalManager *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]