[gnome-calendar] utils: Remove more unused functions
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] utils: Remove more unused functions
- Date: Fri, 26 Apr 2019 19:03:24 +0000 (UTC)
commit 6dda74432c94f9735650bd1b2c9c60e2b7ffa844
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Apr 26 15:40:12 2019 -0300
utils: Remove more unused functions
src/gcal-search-popover.c | 7 +++++--
src/utils/gcal-utils.c | 16 ----------------
src/utils/gcal-utils.h | 6 ------
3 files changed, 5 insertions(+), 24 deletions(-)
---
diff --git a/src/gcal-search-popover.c b/src/gcal-search-popover.c
index f97db269..db61b920 100644
--- a/src/gcal-search-popover.c
+++ b/src/gcal-search-popover.c
@@ -646,10 +646,13 @@ gcal_search_popover_class_init (GcalSearchPopoverClass *klass)
* Emitted when an event is selected from the list.
*
*/
- signals[EVENT_ACTIVATED] = g_signal_new ("event-activated", GCAL_TYPE_SEARCH_POPOVER, G_SIGNAL_RUN_LAST,
+ signals[EVENT_ACTIVATED] = g_signal_new ("event-activated",
+ GCAL_TYPE_SEARCH_POPOVER,
+ G_SIGNAL_RUN_LAST,
0,
NULL, NULL, NULL,
- G_TYPE_NONE, 1, ICAL_TIME_TYPE);
+ G_TYPE_NONE, 1,
+ G_TYPE_DATE_TIME);
/* properties */
/**
diff --git a/src/utils/gcal-utils.c b/src/utils/gcal-utils.c
index d7a9d6b0..5d2f792a 100644
--- a/src/utils/gcal-utils.c
+++ b/src/utils/gcal-utils.c
@@ -100,22 +100,6 @@ month_item[12] =
#define SCROLL_HARDNESS 10.0
-G_DEFINE_BOXED_TYPE (icaltimetype, icaltime, gcal_dup_icaltime, g_free)
-
-/**
- * gcal_dup_icaltime:
- * @date: an #icaltimetype
- *
- * Creates an exact copy of @date.
- *
- * Returns: (transfer full): an #icaltimetype
- */
-icaltimetype*
-gcal_dup_icaltime (const icaltimetype *date)
-{
- return g_memdup (date, sizeof (icaltimetype));
-}
-
/**
* gcal_get_weekday:
* @i: the weekday index
diff --git a/src/utils/gcal-utils.h b/src/utils/gcal-utils.h
index 4349e225..fb831430 100644
--- a/src/utils/gcal-utils.h
+++ b/src/utils/gcal-utils.h
@@ -27,8 +27,6 @@
#include <libgweather/gweather.h>
#include <libical/icaltime.h>
-#define ICAL_TIME_TYPE (icaltime_get_type ())
-
#define ALIGNED(x) (round (x) + 0.5)
#define MINUTES_PER_DAY 1440
#define MAX_MINUTES (7 * MINUTES_PER_DAY)
@@ -42,10 +40,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponent, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GWeatherLocation, gweather_location_unref)
-GType icaltime_get_type (void) G_GNUC_CONST;
-
-icaltimetype* gcal_dup_icaltime (const icaltimetype *date);
-
gchar* gcal_get_weekday (gint i);
gchar* gcal_get_month_name (gint i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]