X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/184218efccb68bd24bb352d908e5f112c23a6bd0..4752c649dca82264c6f54abbddf066fc6ab4f341:/src/surf/storage_n11.cpp diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index a370475170..e430af2649 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -158,13 +158,6 @@ StorageAction *StorageN11::open(const char* mount, const char* path) return action; } -StorageAction *StorageN11::close(surf_file_t fd) -{ - XBT_DEBUG("\tClose file '%s' size '%llu'", fd->cname(), fd->size()); - StorageAction* action = new StorageN11Action(model(), 0, isOff(), this, CLOSE); - return action; -} - StorageAction *StorageN11::read(surf_file_t fd, sg_size_t size) { if (fd->tell() + size > fd->size()) { @@ -211,7 +204,7 @@ StorageN11Action::StorageN11Action(Model* model, double cost, bool failed, Stora lmm_expand(model->getMaxminSystem(), storage->constraint(), getVariable(), 1.0); switch(type) { case OPEN: - case CLOSE: + break; case READ: lmm_expand(model->getMaxminSystem(), storage->constraintRead_, getVariable(), 1.0); break;