Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated functions and structs #369

Merged
merged 1 commit into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed

- `FnsInfo`, use `(ComponentId, FnsId)` instead.
- Deprecated functions and structs from previous releases.

## [0.28.4] - 2024-10-15

Expand Down
3 changes: 0 additions & 3 deletions src/client/confirm_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ impl ConfirmHistory {
}
}

#[deprecated(note = "use `ConfirmHistory` instead")]
pub type Confirmed = ConfirmHistory;

#[cfg(test)]
mod tests {
use super::*;
Expand Down
8 changes: 0 additions & 8 deletions src/core/common_conditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ pub fn server_running(server: Option<Res<RepliconServer>>) -> bool {
server.filter(|server| server.is_running()).is_some()
}

/// Returns `true` if there is no client or if the existing client is disconnected.
///
/// Can be used for systems that run both on the server and in singleplayer mode.
#[deprecated(note = "Use `server_or_singleplayer`")]
pub fn has_authority(client: Option<Res<RepliconClient>>) -> bool {
server_or_singleplayer(client)
}

/// Returns `true` if there is no client or if the existing client is disconnected.
///
/// Can be used instead of the regular [`server_running`] to seamlessly support
Expand Down
3 changes: 0 additions & 3 deletions src/core/replication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ pub mod replication_rules;

use bevy::prelude::*;

#[deprecated(note = "use `Replicated` instead")]
pub type Replication = Replicated;

/// Marks entity for replication.
#[derive(Component, Clone, Copy, Default, Reflect, Debug)]
#[reflect(Component)]
Expand Down
3 changes: 0 additions & 3 deletions src/core/replication/replication_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ impl Default for ReplicationRegistry {
}
}

#[deprecated(note = "use `ReplicationRegistry` instead")]
pub type ReplicationFns = ReplicationRegistry;

/// ID of replicaton functions for a component.
///
/// Can be obtained from [`ReplicationRegistry::register_rule_fns`].
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,6 @@ pub mod server;
pub mod test_app;

pub mod prelude {
#[allow(deprecated)]
pub use super::core::replication::Replication;

pub use super::{
core::{
channels::{ChannelKind, RepliconChannel, RepliconChannels},
Expand Down