X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6e1bfe4b91bd83b1bf4f09b20d5781c3aa4f7562..a4eb5efea24b01bda48fb4dc7c7600de78b4578b:/src/s4u/s4u_file.cpp diff --git a/src/s4u/s4u_file.cpp b/src/s4u/s4u_file.cpp index ad9f63403b..db1c5b2c3a 100644 --- a/src/s4u/s4u_file.cpp +++ b/src/s4u/s4u_file.cpp @@ -91,18 +91,12 @@ sg_size_t File::tell() void File::move(const char* fullpath) { - sg_host_t host = Host::current(); - simgrid::simix::kernelImmediate([this, host, fullpath] { pimpl_->move(host, fullpath); }); + simgrid::simix::kernelImmediate([this, fullpath] { pimpl_->move(fullpath); }); } int File::unlink() { - return unlink(Host::current()); -} - -int File::unlink(sg_host_t host) -{ - return simgrid::simix::kernelImmediate([this, host] { return pimpl_->unlink(host); }); + return simgrid::simix::kernelImmediate([this] { return pimpl_->unlink(); }); } }} // namespace simgrid::s4u