[PATCH 01/16] libplanner/mrp-calendar.c, fix warning: variable 'priv' set but not used



Signed-off-by: Tinggong Wang <wangtinggong gmail com>
---
 libplanner/mrp-calendar.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/libplanner/mrp-calendar.c b/libplanner/mrp-calendar.c
index 95925ae..ca75283 100644
--- a/libplanner/mrp-calendar.c
+++ b/libplanner/mrp-calendar.c
@@ -745,7 +745,6 @@ gint
 mrp_calendar_day_get_total_work (MrpCalendar *calendar,
 				 MrpDay      *day)
 {
-	MrpCalendarPriv *priv;
 	GList          *list, *l;
 	MrpInterval     *ival;
 	gint             total = 0;
@@ -753,8 +752,6 @@ mrp_calendar_day_get_total_work (MrpCalendar *calendar,
 
 	g_return_val_if_fail (MRP_IS_CALENDAR (calendar), 0);
 
-	priv = calendar->priv;
-
 	list = mrp_calendar_day_get_intervals (calendar, day, TRUE);
 
 	for (l = list; l; l = l->next) {
@@ -932,13 +929,11 @@ mrp_calendar_get_day (MrpCalendar *calendar,
 		      mrptime      date,
 		      gboolean     check_ancestors)
 {
-	MrpCalendarPriv *priv;
 	mrptime          aligned_date;
 	MrpDay          *day;
 
 	g_return_val_if_fail (MRP_IS_CALENDAR (calendar), NULL);
 
-	priv         = calendar->priv;
 	aligned_date = mrp_time_align_day (date);
 	day          = calendar_get_day (calendar, aligned_date, check_ancestors);
 
-- 
1.7.6.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]