From: Gunnar Beutner Date: Tue, 4 Dec 2012 14:41:07 +0000 (+0100) Subject: Fixed DynamicObject::DumpObjects(). X-Git-Tag: v0.0.2~711 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea115a2c8cdec15ec121008091681b3b2b8b763a;p=icinga2 Fixed DynamicObject::DumpObjects(). --- diff --git a/lib/base/dynamicobject.cpp b/lib/base/dynamicobject.cpp index 991e2202c..9298068a8 100644 --- a/lib/base/dynamicobject.cpp +++ b/lib/base/dynamicobject.cpp @@ -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); - } } }