From 46d115cfeea26e027e4b40b31ca277015ecb7eff Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 5 Jul 2013 16:24:58 -0400 Subject: Remove GalViewFactory subclasses for calendar views. No longer used. --- calendar/gui/Makefile.am | 3 -- calendar/gui/calendar-view-factory.c | 89 ------------------------------------ calendar/gui/calendar-view-factory.h | 60 ------------------------ calendar/gui/gnome-cal.c | 1 - 4 files changed, 153 deletions(-) delete mode 100644 calendar/gui/calendar-view-factory.c delete mode 100644 calendar/gui/calendar-view-factory.h (limited to 'calendar/gui') diff --git a/calendar/gui/Makefile.am b/calendar/gui/Makefile.am index b7ee4164aa..64ef0f35ea 100644 --- a/calendar/gui/Makefile.am +++ b/calendar/gui/Makefile.am @@ -8,7 +8,6 @@ ecalendarinclude_HEADERS = \ calendar-config.h \ calendar-config-keys.h \ calendar-view.h \ - calendar-view-factory.h \ comp-util.h \ e-alarm-list.h \ e-cal-config.h \ @@ -83,8 +82,6 @@ libevolution_calendar_la_SOURCES = \ calendar-config-keys.h \ calendar-view.c \ calendar-view.h \ - calendar-view-factory.c \ - calendar-view-factory.h \ comp-util.c \ comp-util.h \ e-alarm-list.c \ diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c deleted file mode 100644 index 603bb0e0d2..0000000000 --- a/calendar/gui/calendar-view-factory.c +++ /dev/null @@ -1,89 +0,0 @@ -/* - * calendar-view-factory.c - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - */ - -#include "calendar-view-factory.h" - -#include -#include - -#include "calendar-view.h" - -G_DEFINE_TYPE ( - GalViewFactoryCalendarDay, - gal_view_factory_calendar_day, - GAL_TYPE_VIEW_FACTORY) - -G_DEFINE_TYPE ( - GalViewFactoryCalendarWorkWeek, - gal_view_factory_calendar_work_week, - GAL_TYPE_VIEW_FACTORY) - -G_DEFINE_TYPE ( - GalViewFactoryCalendarWeek, - gal_view_factory_calendar_week, - GAL_TYPE_VIEW_FACTORY) - -G_DEFINE_TYPE ( - GalViewFactoryCalendarMonth, - gal_view_factory_calendar_month, - GAL_TYPE_VIEW_FACTORY) - -static void -gal_view_factory_calendar_day_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_DAY; -} - -static void -gal_view_factory_calendar_day_init (GalViewFactory *factory) -{ -} - -static void -gal_view_factory_calendar_work_week_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WORK_WEEK; -} - -static void -gal_view_factory_calendar_work_week_init (GalViewFactory *factory) -{ -} - -static void -gal_view_factory_calendar_week_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_WEEK; -} - -static void -gal_view_factory_calendar_week_init (GalViewFactory *factory) -{ -} - -static void -gal_view_factory_calendar_month_class_init (GalViewFactoryClass *class) -{ - class->gal_view_type = GAL_TYPE_VIEW_CALENDAR_MONTH; -} - -static void -gal_view_factory_calendar_month_init (GalViewFactory *factory) -{ -} - diff --git a/calendar/gui/calendar-view-factory.h b/calendar/gui/calendar-view-factory.h deleted file mode 100644 index ff4f8ee1c4..0000000000 --- a/calendar/gui/calendar-view-factory.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * calendar-view-factory.h - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - */ - -#ifndef CALENDAR_VIEW_FACTORY_H -#define CALENDAR_VIEW_FACTORY_H - -#include - -/* Standard GObject macros */ -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_DAY \ - (gal_view_factory_calendar_day_get_type ()) -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_WORK_WEEK \ - (gal_view_factory_calendar_work_week_get_type ()) -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_WEEK \ - (gal_view_factory_calendar_week_get_type ()) -#define GAL_TYPE_VIEW_FACTORY_CALENDAR_MONTH \ - (gal_view_factory_calendar_month_get_type ()) - -G_BEGIN_DECLS - -typedef struct _GalViewFactory GalViewFactoryCalendarDay; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarDayClass; - -typedef struct _GalViewFactory GalViewFactoryCalendarWorkWeek; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarWorkWeekClass; - -typedef struct _GalViewFactory GalViewFactoryCalendarWeek; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarWeekClass; - -typedef struct _GalViewFactory GalViewFactoryCalendarMonth; -typedef struct _GalViewFactoryClass GalViewFactoryCalendarMonthClass; - -GType gal_view_factory_calendar_day_get_type - (void) G_GNUC_CONST; -GType gal_view_factory_calendar_work_week_get_type - (void) G_GNUC_CONST; -GType gal_view_factory_calendar_week_get_type - (void) G_GNUC_CONST; -GType gal_view_factory_calendar_month_get_type - (void) G_GNUC_CONST; - -G_END_DECLS - -#endif /* CALENDAR_VIEW_FACTORY_H */ - diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 255851318f..684aa83206 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -45,7 +45,6 @@ #include "dialogs/event-editor.h" #include "calendar-config.h" -#include "calendar-view-factory.h" #include "calendar-view.h" #include "comp-util.h" #include "e-cal-list-view.h" -- cgit v1.2.3