event-editor-dialog: Remove dead code

These weren't being used anywhere.
This commit is contained in:
Georges Basile Stavracas Neto
2020-10-31 16:15:54 -03:00
parent 0f1dc88030
commit 3a9f9009a4
@@ -90,7 +90,6 @@ struct _GcalEventEditorDialog
/* flags */
gboolean event_is_new;
gboolean recurrence_changed;
gboolean setting_event;
};
static void on_calendar_selected_action_cb (GSimpleAction *menu_item,
@@ -282,14 +281,6 @@ transient_size_allocate_cb (GcalEventEditorDialog *self)
MAX (400, (gint) (0.75 * alloc.height)));
}
static void
fix_reminders_label_height_cb (GtkWidget *summary_label,
GdkRectangle *allocation,
GtkWidget *reminders_label)
{
gtk_widget_set_size_request (reminders_label, -1, allocation->height);
}
static void
on_action_button_clicked_cb (GtkWidget *widget,
gpointer user_data)
@@ -530,7 +521,6 @@ gcal_event_editor_dialog_class_init (GcalEventEditorDialogClass *klass)
/* callbacks */
gtk_widget_class_bind_template_callback (widget_class, fix_reminders_label_height_cb);
gtk_widget_class_bind_template_callback (widget_class, on_action_button_clicked_cb);
}
@@ -616,8 +606,6 @@ gcal_event_editor_dialog_set_event (GcalEventEditorDialog *self,
g_clear_object (&self->event);
self->setting_event = TRUE;
/* If we just set the event to NULL, simply send a property notify */
if (!event)
GCAL_GOTO (out);
@@ -668,8 +656,6 @@ out:
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_EVENT]);
self->setting_event = FALSE;
GCAL_EXIT;
}