pub fn delete_system(&mut self, index: &usize) {
        let id = self.systems_ids[*index].clone();

        if let Some(system) = self.systems.get(&id) {
            let _ = std::fs::remove_file(system.path.clone());
        }

        self.systems_names.remove(*index);
        self.systems_ids.remove(*index);
        self.systems.remove(&id);
    }
/// Delete the system of the given id
Delete the system of the given id
Delete the system of the given id
pub fn delete_system(&mut self, index: &usize) {
        let id = self.systems_ids[*index].clone();
        if let Some(system) = self.systems.get(&id) {
            let _ = std::fs::remove_file(system.path.clone());
        }
        self.systems_names.remove(*index);
        self.systems_ids.remove(*index);
        self.systems.remove(&id);
    }
pub fn delete_system ( & mut self , index : & usize ) { let id = self . systems_ids [ * index ] . clone ( ) ; if let Some ( system ) = self . systems . get ( & id ) { let _ = std :: fs :: remove_file ( system . path . clone ( ) ) ; } self . systems_names . remove ( * index ) ; self . systems_ids . remove ( * index ) ; self . systems . remove ( & id ) ; }
Delete the system of the given id
Delete the system of the given id
&mut self
index
&usize
&mut self
index
&usize