[mutter] stack-tracker: Remove unused variable



commit 41b4a079c7d4932e675ce468db05c7ca16919c11
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jul 10 16:27:11 2014 -0400

    stack-tracker: Remove unused variable

 src/core/stack-tracker.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/core/stack-tracker.c b/src/core/stack-tracker.c
index 04b078d..ad1763b 100644
--- a/src/core/stack-tracker.c
+++ b/src/core/stack-tracker.c
@@ -709,14 +709,10 @@ meta_stack_tracker_record_lower (MetaStackTracker       *tracker,
  *
  * Return value: %TRUE if the predicted state is consistent with
  * receiving the given @op from X, else %FALSE.
- *
- * @modified will be set to %TRUE if tracker->verified_stack is
- * changed by applying any newly validated operations, else %FALSE.
  */
 static gboolean
 stack_tracker_verify_predictions (MetaStackTracker *tracker,
-                                  MetaStackOp      *op,
-                                  gboolean         *modified)
+                                  MetaStackOp      *op)
 {
   GArray *tmp_predicted_stack = NULL;
   GArray *predicted_stack;
@@ -825,7 +821,6 @@ verified:
       meta_stack_op_free (queued_op);
     }
 
-  *modified = modified_stack;
   if (modified_stack)
     {
       g_array_free (tracker->verified_stack, TRUE);
@@ -847,8 +842,6 @@ not_verified:
       tracker->predicted_stack = NULL;
     }
 
-  *modified = FALSE;
-
   return FALSE;
 }
 
@@ -1036,7 +1029,6 @@ static void
 stack_tracker_event_received (MetaStackTracker *tracker,
                              MetaStackOp      *op)
 {
-  gboolean need_sync = FALSE;
   gboolean verified;
 
   /* If the event is older than our latest requery, then it's
@@ -1059,7 +1051,7 @@ stack_tracker_event_received (MetaStackTracker *tracker,
    */
   meta_stack_op_apply (op, tracker->xserver_stack);
 
-  verified = stack_tracker_verify_predictions (tracker, op, &need_sync);
+  verified = stack_tracker_verify_predictions (tracker, op);
   if (!verified)
     {
       resync_verified_stack_with_xserver_stack (tracker);


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