X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bf35e3872ad53be671649d98a147ebc16c92dc2d..e44f9774238ec0236589e28a4f4dc35706aab511:/src/surf/xml/surfxml_sax_cb.cpp?ds=sidebyside diff --git a/src/surf/xml/surfxml_sax_cb.cpp b/src/surf/xml/surfxml_sax_cb.cpp index 26046c6b5e..e57ae9f91c 100644 --- a/src/surf/xml/surfxml_sax_cb.cpp +++ b/src/surf/xml/surfxml_sax_cb.cpp @@ -183,10 +183,6 @@ double surf_parse_get_value_with_unit(const char* string, const unit_scale& unit if (ptr == string) surf_parse_error(std::string("cannot parse number:") + string); if (ptr[0] == '\0') { - if (res == 0) - return res; // Ok, 0 can be unit-less - - XBT_WARN("Deprecated unit-less value '%s' for %s %s. %s", string, entity_kind, name.c_str(), error_msg); ptr = (char*)default_unit; } auto u = units.find(ptr);