refactor!: removed HitObject::end_time from public api (#25)

This commit is contained in:
Badewanne3
2023-11-10 15:27:24 +01:00
committed by GitHub
parent 3492a9472e
commit b6b97c1007
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@
- Added the method `AnyPP::hitresult_priority`
- __Breaking adjustments:__
- Removed the method `HitObject::end_time` from the public api.
- Overhauled gradual calculation. All relevant types are now gated behind the `gradual` feature which must be enabled.
- `*GradualDifficultyAttributes` has been renamed to `*GradualDifficulty` and `*GradualPerformanceAttributes`
has been renamed to `*GradualPerformance`.
+1 -2
View File
@@ -16,8 +16,7 @@ pub struct HitObject {
impl HitObject {
/// The end time of the object.
#[inline]
pub fn end_time(&self) -> f64 {
pub(crate) fn end_time(&self) -> f64 {
match &self.kind {
HitObjectKind::Circle => self.start_time,
// incorrect, only called in mania which has no sliders though