1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:23:00 +08:00

Remove SliderCurve.Offset (unused)

This commit is contained in:
smoogipoo 2018-10-25 14:24:50 +09:00
parent 6310c183fa
commit 8b36d9b482

View File

@ -18,8 +18,6 @@ namespace osu.Game.Rulesets.Objects
public CurveType CurveType = CurveType.PerfectCurve;
public Vector2 Offset;
private readonly List<Vector2> calculatedPath = new List<Vector2>();
private readonly List<double> cumulativeLength = new List<double>();
@ -187,12 +185,12 @@ namespace osu.Game.Rulesets.Objects
int i = 0;
for (; i < calculatedPath.Count && cumulativeLength[i] < d0; ++i) { }
path.Add(interpolateVertices(i, d0) + Offset);
path.Add(interpolateVertices(i, d0));
for (; i < calculatedPath.Count && cumulativeLength[i] <= d1; ++i)
path.Add(calculatedPath[i] + Offset);
path.Add(calculatedPath[i]);
path.Add(interpolateVertices(i, d1) + Offset);
path.Add(interpolateVertices(i, d1));
}
/// <summary>
@ -207,7 +205,7 @@ namespace osu.Game.Rulesets.Objects
Calculate();
double d = progressToDistance(progress);
return interpolateVertices(indexOfDistance(d), d) + Offset;
return interpolateVertices(indexOfDistance(d), d);
}
}
}