utils: Remove more unused functions

This commit is contained in:
Georges Basile Stavracas Neto
2019-04-26 15:42:32 -03:00
parent 14966831bf
commit 6dda74432c
3 changed files with 5 additions and 24 deletions
+5 -2
View File
@@ -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 */
/**
-16
View File
@@ -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
-6
View File
@@ -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);