From 1b76f67d7671a06a1bc96f05cb5b925f16e82f93 Mon Sep 17 00:00:00 2001
From: Robert Loehning <robert.loehning@nokia.com>
Date: Thu, 20 Oct 2011 21:20:32 +0200
Subject: [PATCH] Removed dead assignments

Change-Id: I7cd0e127c23d209d210385906d0923bce650a3e5
Reviewed-by: hjk <qthjk@ovi.com>
---
 share/qtcreator/dumper/dumper.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/share/qtcreator/dumper/dumper.cpp b/share/qtcreator/dumper/dumper.cpp
index 551d91d547b..3572c5a7047 100644
--- a/share/qtcreator/dumper/dumper.cpp
+++ b/share/qtcreator/dumper/dumper.cpp
@@ -1569,8 +1569,6 @@ static void qDumpQHash(QDumper &d)
     d.putItem("numchild", n);
 
     if (d.dumpChildren) {
-        if (n > 1000)
-            n = 1000;
         const bool isSimpleKey = isSimpleType(keyType);
         const bool isSimpleValue = isSimpleType(valueType);
         const bool opt = isOptimizedIntKey(keyType);
@@ -1922,9 +1920,6 @@ static void qDumpQMap(QDumper &d)
     d.putItemCount("value", n);
     d.putItem("numchild", n);
     if (d.dumpChildren) {
-        if (n > 1000)
-            n = 1000;
-
         //unsigned keySize = d.extraInt[0];
         //unsigned valueSize = d.extraInt[1];
         unsigned mapnodesize = d.extraInt[2];
@@ -2850,8 +2845,6 @@ static void qDumpQSet(QDumper &d)
     d.putItem("valueeditable", "false");
     d.putItem("numchild", 2 * n);
     if (d.dumpChildren) {
-        if (n > 100)
-            n = 100;
         d.beginChildren();
         int i = 0;
         for (int bucket = 0; bucket != hd->numBuckets && i <= 10000; ++bucket) {
-- 
GitLab