Skip to content

Commit

Permalink
fix: remove gradual calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueRou committed Jun 29, 2024
1 parent 288cb62 commit 0cc7306
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 98 deletions.
16 changes: 2 additions & 14 deletions src/difficulty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ use pyo3::{
use rosu_pp::Difficulty;

use crate::{
attributes::difficulty::PyDifficultyAttributes,
beatmap::PyBeatmap,
error::ArgsError,
gradual::{difficulty::PyGradualDifficulty, performance::PyGradualPerformance},
performance::PyPerformance,
strains::PyStrains,
attributes::difficulty::PyDifficultyAttributes, beatmap::PyBeatmap, error::ArgsError,
performance::PyPerformance, strains::PyStrains,
};

#[pyclass(name = "Difficulty")]
Expand Down Expand Up @@ -171,14 +167,6 @@ impl PyDifficulty {
}
}

fn gradual_difficulty(&self, map: &PyBeatmap) -> PyGradualDifficulty {
PyGradualDifficulty::new(self, map)
}

fn gradual_performance(&self, map: &PyBeatmap) -> PyGradualPerformance {
PyGradualPerformance::new(self, map)
}

fn set_mods(&mut self, mods: Option<u32>) {
self.mods = mods.unwrap_or(0);
}
Expand Down
42 changes: 0 additions & 42 deletions src/gradual/difficulty.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/gradual/mod.rs

This file was deleted.

35 changes: 0 additions & 35 deletions src/gradual/performance.rs

This file was deleted.

4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use self::{
beatmap::PyBeatmap,
difficulty::PyDifficulty,
error::{ArgsError, ParseError},
gradual::{difficulty::PyGradualDifficulty, performance::PyGradualPerformance},
mode::PyGameMode,
performance::PyPerformance,
score_state::PyScoreState,
Expand All @@ -25,7 +24,6 @@ mod attributes;
mod beatmap;
mod difficulty;
mod error;
mod gradual;
mod mode;
mod performance;
mod score_state;
Expand All @@ -36,8 +34,6 @@ fn rosu_pp_py(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<PyBeatmap>()?;
m.add_class::<PyDifficulty>()?;
m.add_class::<PyPerformance>()?;
m.add_class::<PyGradualDifficulty>()?;
m.add_class::<PyGradualPerformance>()?;
m.add_class::<PyBeatmapAttributesBuilder>()?;

m.add_class::<PyGameMode>()?;
Expand Down
2 changes: 1 addition & 1 deletion src/strains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define_class! {
pub aim_no_sliders: DoubleList?,
pub speed: DoubleList?,
pub flashlight: DoubleList?,
relax: DoubleList?,
pub relax: DoubleList?,
pub color: DoubleList?,
pub rhythm: DoubleList?,
pub stamina: DoubleList?,
Expand Down

0 comments on commit 0cc7306

Please sign in to comment.