Skip to content

Commit

Permalink
chore: Remove unused rosu.Difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Oct 19, 2024
1 parent 2018683 commit 8c90b9e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/tosu/src/entities/BeatmapPpData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ export class BeatmapPPData extends AbstractEntity {
`BPPD(updateMapMetadata) [${totalTime}ms] Spend on opening beatmap`
);

const difficulty = new rosu.Difficulty({ mods: currentMods });
const attributes = new rosu.BeatmapAttributesBuilder({
map: this.beatmap,
mods: currentMods,
Expand Down Expand Up @@ -443,7 +442,6 @@ export class BeatmapPPData extends AbstractEntity {
hitWindow: fcPerformance.difficulty.hitWindow
};

difficulty.free();
attributes.free();

this.resetReportCount('BPPD(updateMapMetadata)');
Expand All @@ -468,9 +466,9 @@ export class BeatmapPPData extends AbstractEntity {
xaxis: []
};

const difficulty = new rosu.Difficulty({ mods: currentMods });
const strains = difficulty.strains(this.beatmap);

const strains = new rosu.Difficulty({ mods: currentMods }).strains(
this.beatmap
);
let oldStrains: number[] = [];

let strainsAmount = 0;
Expand Down

0 comments on commit 8c90b9e

Please sign in to comment.