From 5202064c9eb0ecea53931192b05dd56d0124a2f6 Mon Sep 17 00:00:00 2001 From: Sebastian Krajewski Date: Sun, 13 Oct 2024 02:19:40 +0200 Subject: [PATCH] Remove Step SR calculation progress for 2024 rework calc --- app/rulesets/osu/performance/pp241007/difficulty.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/rulesets/osu/performance/pp241007/difficulty.go b/app/rulesets/osu/performance/pp241007/difficulty.go index a3589303..8aaf43ef 100644 --- a/app/rulesets/osu/performance/pp241007/difficulty.go +++ b/app/rulesets/osu/performance/pp241007/difficulty.go @@ -1,7 +1,6 @@ package pp241007 import ( - "fmt" "github.com/wieku/danser-go/app/beatmap/difficulty" "github.com/wieku/danser-go/app/beatmap/objects" "github.com/wieku/danser-go/app/rulesets/osu/performance/api" @@ -156,8 +155,6 @@ func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject diffCalc.addObjectToAttribs(objects[0], &stars[0]) - lastProgress := -1 - for i, o := range diffObjects { attr := stars[i] diffCalc.addObjectToAttribs(objects[i+1], &attr) @@ -168,16 +165,6 @@ func (diffCalc *DifficultyCalculator) CalculateStep(objects []objects.IHitObject flashlightSkill.Process(o) stars = append(stars, diffCalc.getStars(aimSkill, aimNoSlidersSkill, speedSkill, flashlightSkill, diff, attr)) - - if len(diffObjects) > 2500 { - progress := (100 * i) / (len(diffObjects) - 1) - - if progress != lastProgress && progress%5 == 0 { - log.Println(fmt.Sprintf("Progress: %d%%", progress)) - } - - lastProgress = progress - } } endTime := time.Now()