X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8fea398a5a9ca83c4e6009daf964d59869388e6c..3eaab01ff3aaf3b8addf247073237c5891f485d4:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 9a804338f6..48679307f8 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -158,33 +158,6 @@ int HostImpl::unlink(surf_file_t fd) } } -sg_size_t HostImpl::getSize(surf_file_t fd) -{ - return fd->size(); -} - -sg_size_t HostImpl::fileTell(surf_file_t fd) -{ - return fd->tell(); -} - -int HostImpl::fileSeek(surf_file_t fd, sg_offset_t offset, int origin) -{ - switch (origin) { - case SEEK_SET: - fd->setPosition(offset); - return 0; - case SEEK_CUR: - fd->incrPosition(offset); - return 0; - case SEEK_END: - fd->setPosition(fd->size() + offset); - return 0; - default: - return -1; - } -} - int HostImpl::fileMove(surf_file_t fd, const char* fullpath) { /* Check if the new full path is on the same mount point */