pub fn delete_tip_by_id(&mut self, id: u64) {
        let game_key = GAME_SELECTED.read().unwrap().get_game_key_name();

        if let Some(old_game_tips) = self.local_tips.tips.get_mut(&game_key) {
            old_game_tips.iter_mut().for_each(|(_, tips)| tips.retain(|old_game_tip| old_game_tip.get_ref_id() != &id));
            old_game_tips.retain(|_, tips| !tips.is_empty());
        }
    }
/// This function deletes the tip with the corresponding id.
This function deletes the tip with the corresponding id.
This function deletes the tip with the corresponding id .
pub fn delete_tip_by_id(&mut self, id: u64) {
        let game_key = GAME_SELECTED.read().unwrap().get_game_key_name();
        if let Some(old_game_tips) = self.local_tips.tips.get_mut(&game_key) {
            old_game_tips.iter_mut().for_each(|(_, tips)| tips.retain(|old_game_tip| old_game_tip.get_ref_id() != &id));
            old_game_tips.retain(|_, tips| !tips.is_empty());
        }
    }
pub fn delete_tip_by_id ( & mut self , id : u64 ) { let game_key = GAME_SELECTED . read ( ) . unwrap ( ) . get_game_key_name ( ) ; if let Some ( old_game_tips ) = self . local_tips . tips . get_mut ( & game_key ) { old_game_tips . iter_mut ( ) . for_each ( | ( _ , tips ) | tips . retain ( | old_game_tip | old_game_tip . get_ref_id ( ) != & id ) ) ; old_game_tips . retain ( | _ , tips | ! tips . is_empty ( ) ) ; } }
This function deletes the tip with the corresponding id.
This function deletes the tip with the corresponding id .
&mut self
id
u64
&mut self
id
u64