gcal-view: removed unused methods

This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:25 -05:00
parent a5157748bc
commit 4330859ae0
3 changed files with 3 additions and 100 deletions
+1 -34
View File
@@ -128,10 +128,6 @@ static GtkWidget* gcal_month_view_get_by_uuid (GcalView *vie
const gchar *uuid);
/* Review API */
static void gcal_month_view_remove_by_uuid (GcalView *view,
const gchar *uuid);
static void gcal_month_view_reposition_child (GcalView *view,
const gchar *uuid);
@@ -1286,35 +1282,6 @@ gcal_month_view_get_by_uuid (GcalView *view,
return NULL;
}
static void
gcal_month_view_remove_by_uuid (GcalView *view,
const gchar *uuid)
{
GcalMonthViewPrivate *priv;
gint i;
GList *l;
g_return_if_fail (GCAL_IS_MONTH_VIEW (view));
priv = GCAL_MONTH_VIEW (view)->priv;
for (i = 0; i < 31; i++)
{
for (l = priv->days[i]; l != NULL; l = l->next)
{
GcalViewChild *child;
const gchar* widget_uuid;
child = (GcalViewChild*) l->data;
widget_uuid = gcal_event_widget_peek_uuid (GCAL_EVENT_WIDGET (child->widget));
if (g_strcmp0 (uuid, widget_uuid) == 0)
{
gtk_widget_destroy (child->widget);
return;
}
}
}
}
static void
gcal_month_view_reposition_child (GcalView *view,
const gchar *uuid)
@@ -1365,7 +1332,7 @@ gcal_month_view_reposition_child (GcalView *view,
}
else
{
gcal_month_view_remove_by_uuid (view, uuid);
gtk_widget_destroy (gcal_month_view_get_by_uuid (view, uuid));
}
g_free (date);