refactor(scenegraph): remove new function

This commit is contained in:
Nova
2022-06-04 14:22:57 -04:00
parent efe870c193
commit fedbe17b7a
2 changed files with 1 additions and 13 deletions

View File

@@ -13,11 +13,10 @@ impl<'a> Client<'a> {
pub fn from_connection(connection: UnixStream) -> RcCell<Self> {
let client = RcCell::new(Client {
weak_ref: WeakCell::new(),
scenegraph: None,
scenegraph: Default::default(),
messenger: Messenger::new(connection),
});
client.borrow_mut().weak_ref = client.downgrade();
client.borrow_mut().scenegraph = Some(Scenegraph::new(client.clone()));
client
}
pub fn dispatch(&self) -> Result<(), std::io::Error> {