mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Remove unnecessary variable discard
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
9fa8bee094
commit
448c58c35d
@ -34,7 +34,7 @@ namespace osu.Game.Beatmaps.Legacy
|
|||||||
|
|
||||||
protected override bool CheckAlreadyExisting(double time, ControlPoint newPoint)
|
protected override bool CheckAlreadyExisting(double time, ControlPoint newPoint)
|
||||||
{
|
{
|
||||||
if (newPoint is SampleControlPoint _)
|
if (newPoint is SampleControlPoint)
|
||||||
{
|
{
|
||||||
var existing = BinarySearch(SamplePoints, time);
|
var existing = BinarySearch(SamplePoints, time);
|
||||||
return newPoint.IsRedundant(existing);
|
return newPoint.IsRedundant(existing);
|
||||||
|
Loading…
Reference in New Issue
Block a user