OSDN Git Service

Removed dead assignments
authorRobert Loehning <robert.loehning@nokia.com>
Thu, 20 Oct 2011 19:20:32 +0000 (21:20 +0200)
committerhjk <qthjk@ovi.com>
Tue, 25 Oct 2011 11:10:55 +0000 (13:10 +0200)
Change-Id: I7cd0e127c23d209d210385906d0923bce650a3e5
Reviewed-by: hjk <qthjk@ovi.com>
share/qtcreator/dumper/dumper.cpp

index 551d91d..3572c5a 100644 (file)
@@ -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) {