Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[fbinfer] Fix dead stores.
[simgrid.git] / src / plugins / file_system / s4u_FileSystem.cpp
index aaaa935..914c09d 100644 (file)
@@ -253,10 +253,8 @@ void File::move(const std::string& fullpath) const
 int File::unlink() const
 {
   /* Check if the file is on local storage */
-  std::map<std::string, sg_size_t, std::less<>>* content = nullptr;
-  const char* name = "";
-  content = local_disk_->extension<FileSystemDiskExt>()->get_content();
-  name    = local_disk_->get_cname();
+  auto* content    = local_disk_->extension<FileSystemDiskExt>()->get_content();
+  const char* name = local_disk_->get_cname();
 
   if (not content || content->find(path_) == content->end()) {
     XBT_WARN("File %s is not on disk %s. Impossible to unlink", path_.c_str(), name);