From 560d27466bc72e654b468fe8bb26164bc3162623 Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 29 Oct 2025 01:54:06 +0100 Subject: [PATCH] Remove `on_connecting` observer --- common/src/network/client.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/common/src/network/client.rs b/common/src/network/client.rs index 3d39acb..5c84add 100644 --- a/common/src/network/client.rs +++ b/common/src/network/client.rs @@ -14,7 +14,6 @@ impl Plugin for ClientPlugin { app.add_plugins(super::ProtocolPlugin); } - app.add_observer(on_connecting); app.add_observer(on_connected); app.add_observer(on_disconnected); @@ -35,14 +34,6 @@ fn autoconnect_host_client(event: On, mut commands: Comman .trigger(|entity| Connect { entity }); } -fn on_connecting(event: On, clients: Query<(), With>) { - let client = event.entity; - if !clients.contains(client) { - return; // Not a client we started. (server-side?) - }; - info!("Client '{client}' connecting ..."); -} - fn on_connected(event: On, clients: Query<(), With>) { let client = event.entity; if !clients.contains(client) {