1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Remove unneeded check of caught object removal

The logic was public but now it is private
so the condition is ensured by the caller
This commit is contained in:
ekrctb 2020-12-09 10:50:35 +09:00
parent 775c4bad97
commit a8e2f35b62

View File

@ -554,8 +554,7 @@ namespace osu.Game.Rulesets.Catch.UI
{
var droppedObject = getDroppedObject(caughtObject);
if (!caughtObjectContainer.Remove(caughtObject))
throw new InvalidOperationException("Can only drop objects that were previously caught on the plate");
caughtObjectContainer.Remove(caughtObject);
droppedObjectTarget.Add(droppedObject);