Remove unused variable
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 18 Dec 2012 07:08:31 +0000 (08:08 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 18 Dec 2012 09:29:18 +0000 (10:29 +0100)
While the name may suggest that the blah variable is a very performance
critical piece of the stack traversal algorithm, it turns out to be of little
relevance :)

Change-Id: Ia12eaf5f169a6eae64f005364da7452e1ef86daf
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4mm.cpp

index aa3844b..4cdb211 100644 (file)
--- a/qv4mm.cpp
+++ b/qv4mm.cpp
@@ -438,8 +438,7 @@ void MemoryManagerWithNativeStack::collectRootsOnStack(QVector<VM::Object *> &ro
     }
     qSort(heapChunkBoundaries, heapChunkBoundariesEnd);
 
-    int blah = 0;
-    for (; current < top; ++current, ++blah) {
+    for (; current < top; ++current) {
         Object* possibleObject = current->asObject();
         if (!possibleObject)
             continue;