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



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

diff --git a/libplanner/mrp-task-manager.c b/libplanner/mrp-task-manager.c
index 2388959..382528b 100644
--- a/libplanner/mrp-task-manager.c
+++ b/libplanner/mrp-task-manager.c
@@ -837,12 +837,9 @@ add_predecessor_to_dependency_graph (MrpTaskManager *manager,
 				     MrpTask        *task,
 				     MrpTask        *predecessor)
 {
-	MrpTaskManagerPriv *priv;
 	MrpTaskGraphNode   *task_node;
 	MrpTaskGraphNode   *predecessor_node;
 
-	priv = manager->priv;
-
 	predecessor_node = imrp_task_get_graph_node (predecessor);
 
 	task_node = imrp_task_get_graph_node (task);
@@ -886,12 +883,9 @@ remove_predecessor_from_dependency_graph (MrpTaskManager *manager,
 					  MrpTask        *task,
 					  MrpTask        *predecessor)
 {
-	MrpTaskManagerPriv *priv;
 	MrpTaskGraphNode   *task_node;
 	MrpTaskGraphNode   *predecessor_node;
 
-	priv = manager->priv;
-
 	predecessor_node = imrp_task_get_graph_node (predecessor);
 
 	task_node = imrp_task_get_graph_node (task);
@@ -939,12 +933,9 @@ remove_parent_from_dependency_graph (MrpTaskManager *manager,
 				     MrpTask        *task,
 				     MrpTask        *parent)
 {
-	MrpTaskManagerPriv *priv;
 	MrpTaskGraphNode   *task_node;
 	MrpTaskGraphNode   *parent_node;
 
-	priv = manager->priv;
-
 	task_node = imrp_task_get_graph_node (task);
 	parent_node = imrp_task_get_graph_node (parent);
 
@@ -991,12 +982,9 @@ add_parent_to_dependency_graph (MrpTaskManager *manager,
 				MrpTask        *task,
 				MrpTask        *parent)
 {
-	MrpTaskManagerPriv *priv;
 	MrpTaskGraphNode   *task_node;
 	MrpTaskGraphNode   *parent_node;
 
-	priv = manager->priv;
-
 	task_node = imrp_task_get_graph_node (task);
 	parent_node = imrp_task_get_graph_node (parent);
 
@@ -1681,7 +1669,6 @@ task_manager_calculate_milestone_work_start (MrpTaskManager *manager,
 					     mrptime         start)
 
 {
-	MrpTaskManagerPriv *priv;
 	mrptime             t;
 	mrptime             t1, t2;
 	mrptime             work_start;
@@ -1689,8 +1676,6 @@ task_manager_calculate_milestone_work_start (MrpTaskManager *manager,
 	MrpUnitsInterval   *unit_ival;
 	MrpTaskType         type;
 
-	priv = manager->priv;
-
 	type = mrp_task_get_task_type (task);
 	g_return_if_fail (type == MRP_TASK_TYPE_MILESTONE);
 
@@ -2065,7 +2050,6 @@ static void
 task_manager_do_forward_pass_helper (MrpTaskManager *manager,
 				     MrpTask        *task)
 {
-	MrpTaskManagerPriv *priv;
 	mrptime             sub_start, sub_work_start, sub_finish;
 	mrptime             old_start, old_finish;
 	mrptime             new_start, new_finish;
@@ -2075,8 +2059,6 @@ task_manager_do_forward_pass_helper (MrpTaskManager *manager,
 	mrptime             t1, t2;
 	MrpTaskSched        sched;
 
-	priv = manager->priv;
-
 	old_start = mrp_task_get_start (task);
 	old_finish = mrp_task_get_finish (task);
 	old_duration = old_finish - old_start;
@@ -2684,7 +2666,6 @@ task_manager_get_work_for_calendar (MrpTaskManager *manager,
 				    mrptime         start,
 				    mrptime         finish)
 {
-	MrpTaskManagerPriv *priv;
 	mrptime             t;
 	mrptime             t1, t2;
 	gint                work;
@@ -2692,8 +2673,6 @@ task_manager_get_work_for_calendar (MrpTaskManager *manager,
 	GList              *ivals, *l;
 	MrpInterval        *ival;
 
-	priv = manager->priv;
-
 	work = 0;
 
 	/* Loop through the intervals of the calendar and add up the work, until
@@ -2739,15 +2718,12 @@ task_manager_get_work_for_task_with_assignments (MrpTaskManager *manager,
 									   mrptime         start,
 									   mrptime         finish)
 {
-	MrpTaskManagerPriv *priv;
 	mrptime             t;
 	mrptime             t1, t2;
 	gint                work, delta;
 	GList              *ivals, *l;
 	MrpUnitsInterval   *ival;
 
-	priv = manager->priv;
-
 	work = 0;
 
 	/* Loop through the intervals of the calendar and add up the work, until
-- 
1.7.6.4



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