build: Remove unused variables
This commit is contained in:
@@ -122,9 +122,7 @@ setup_calendar (GcalEditCalendarPage *self,
|
|||||||
GcalCalendar *calendar)
|
GcalCalendar *calendar)
|
||||||
{
|
{
|
||||||
g_autofree gchar *parent_name = NULL;
|
g_autofree gchar *parent_name = NULL;
|
||||||
GcalCalendar *default_calendar;
|
|
||||||
GcalManager *manager;
|
GcalManager *manager;
|
||||||
ESource *default_source;
|
|
||||||
ESource *source;
|
ESource *source;
|
||||||
gboolean is_remote;
|
gboolean is_remote;
|
||||||
gboolean is_file;
|
gboolean is_file;
|
||||||
@@ -133,8 +131,6 @@ setup_calendar (GcalEditCalendarPage *self,
|
|||||||
self->calendar = g_object_ref (calendar);
|
self->calendar = g_object_ref (calendar);
|
||||||
|
|
||||||
manager = gcal_context_get_manager (self->context);
|
manager = gcal_context_get_manager (self->context);
|
||||||
default_calendar = gcal_manager_get_default_calendar (manager);
|
|
||||||
default_source = gcal_calendar_get_source (default_calendar);
|
|
||||||
is_goa = is_goa_calendar (self, calendar);
|
is_goa = is_goa_calendar (self, calendar);
|
||||||
source = gcal_calendar_get_source (calendar);
|
source = gcal_calendar_get_source (calendar);
|
||||||
is_file = e_source_has_extension (source, E_SOURCE_EXTENSION_LOCAL_BACKEND);
|
is_file = e_source_has_extension (source, E_SOURCE_EXTENSION_LOCAL_BACKEND);
|
||||||
@@ -218,14 +214,12 @@ setup_calendar (GcalEditCalendarPage *self,
|
|||||||
static void
|
static void
|
||||||
update_calendar (GcalEditCalendarPage *self)
|
update_calendar (GcalEditCalendarPage *self)
|
||||||
{
|
{
|
||||||
GcalManager *manager;
|
|
||||||
const GdkRGBA *color;
|
const GdkRGBA *color;
|
||||||
|
|
||||||
GCAL_ENTRY;
|
GCAL_ENTRY;
|
||||||
|
|
||||||
g_assert (self->calendar != NULL);
|
g_assert (self->calendar != NULL);
|
||||||
|
|
||||||
manager = gcal_context_get_manager (self->context);
|
|
||||||
color = gtk_color_dialog_button_get_rgba (self->calendar_color_button);
|
color = gtk_color_dialog_button_get_rgba (self->calendar_color_button);
|
||||||
|
|
||||||
gcal_calendar_set_visible (self->calendar, adw_switch_row_get_active (self->calendar_visible_row));
|
gcal_calendar_set_visible (self->calendar, adw_switch_row_get_active (self->calendar_visible_row));
|
||||||
|
|||||||
Reference in New Issue
Block a user