soon to be deleted code
This commit is contained in:
parent
6df560c525
commit
9d234b2393
|
|
@ -1,4 +1,4 @@
|
|||
use crate::server::client::client_profile::Client;
|
||||
/*use crate::server::client::client_profile::Client;
|
||||
|
||||
use std::sync::Mutex;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -26,4 +26,4 @@ pub fn get_client_data(clients_ref: &Arc<Mutex<HashMap<String, Client>>>, data:
|
|||
},
|
||||
None => String::from("client not online"),
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::server::client::client_profile::Client;
|
||||
/*use crate::server::client::client_profile::Client;
|
||||
|
||||
pub fn format_client_data(uuid: &String, client: &Client) -> String{
|
||||
["!client: username:",client.get_username(), " uuid:", uuid, " host:\"", client.get_address(), "\""].concat()
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::server::client::client_profile::Client;
|
||||
/*use crate::server::client::client_profile::Client;
|
||||
|
||||
use std::sync::Mutex;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -10,3 +10,4 @@ pub fn add_client(clients_ref: &Arc<Mutex<HashMap<String, Client>>>, client: &Cl
|
|||
let uuid = client.get_uuid().to_string();
|
||||
//clients_hashmap.insert(uuid, client.clone());
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use crate::server::client::client_profile::Client;
|
||||
/*use crate::server::client::client_profile::Client;
|
||||
|
||||
use std::sync::Mutex;
|
||||
use std::sync::Arc;
|
||||
|
|
@ -7,4 +7,4 @@ use std::collections::HashMap;
|
|||
pub fn remove_client(clients_ref: &Arc<Mutex<HashMap<String, Client>>>, client: &Client){
|
||||
let mut clients_hashmap = clients_ref.lock().unwrap();
|
||||
clients_hashmap.remove(client.get_uuid()).unwrap();
|
||||
}
|
||||
}*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue