]> granicus.if.org Git - icinga2/commitdiff
Fixed DynamicObject::DumpObjects().
authorGunnar Beutner <gunnar@beutner.name>
Tue, 4 Dec 2012 14:41:07 +0000 (15:41 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 4 Dec 2012 14:41:07 +0000 (15:41 +0100)
lib/base/dynamicobject.cpp

index 991e2202c59e821c363a25bfcbbc590bdcb187a1..9298068a8a0964fc357c055ff24b2d235cce94a4 100644 (file)
@@ -362,17 +362,6 @@ void DynamicObject::DumpObjects(const String& filename)
                        String json = value.Serialize();
 
                        NetString::WriteStringToStream(sfp, json);
-
-                       size_t count;
-                       while ((count = sfp->GetAvailableBytes()) > 0) {
-                               char buffer[1024];
-                       
-                               if (count > sizeof(buffer))
-                                       count = sizeof(buffer);
-
-                               sfp->Read(buffer, count);
-                               fp.write(buffer, count);
-                       }
                }
        }