[PATCH 06/16] src/planner-cmd-manager.c, fix warning: variable 'priv' set but not used



Signed-off-by: Tinggong Wang <wangtinggong gmail com>
---
 src/planner-cmd-manager.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/src/planner-cmd-manager.c b/src/planner-cmd-manager.c
index c49d2ad..bbade3f 100644
--- a/src/planner-cmd-manager.c
+++ b/src/planner-cmd-manager.c
@@ -374,13 +374,10 @@ planner_cmd_manager_insert_and_do (PlannerCmdManager *manager, PlannerCmd *cmd)
 gboolean
 planner_cmd_manager_undo (PlannerCmdManager *manager)
 {
-	PlannerCmdManagerPriv *priv;
 	PlannerCmd            *cmd;
 
 	g_return_val_if_fail (PLANNER_IS_CMD_MANAGER (manager), FALSE);
 
-	priv = manager->priv;
-
 	cmd = get_undo_cmd (manager, TRUE);
 
 	if (!cmd) {
@@ -406,13 +403,10 @@ planner_cmd_manager_undo (PlannerCmdManager *manager)
 gboolean
 planner_cmd_manager_redo (PlannerCmdManager *manager)
 {
-	PlannerCmdManagerPriv *priv;
 	PlannerCmd            *cmd;
 
 	g_return_val_if_fail (PLANNER_IS_CMD_MANAGER (manager), FALSE);
 
-	priv = manager->priv;
-
 	cmd = get_redo_cmd (manager, TRUE);
 	if (!cmd) {
 		return FALSE;
-- 
1.7.6.4



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