Remove DynamicAccessTools entirely.

This commit is contained in:
EliteMasterEric 2024-03-06 14:13:48 -05:00
parent 2fa1d18dce
commit f671cc8569
3 changed files with 1 additions and 18 deletions

View file

@ -13,7 +13,6 @@ using Lambda;
using StringTools;
using funkin.util.tools.ArraySortTools;
using funkin.util.tools.ArrayTools;
using funkin.util.tools.DynamicAccessTools;
using funkin.util.tools.FloatTools;
using funkin.util.tools.Int64Tools;
using funkin.util.tools.IntTools;

View file

@ -4525,7 +4525,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
{
// Create an event and place it in the chart.
// TODO: Figure out configuring event data.
var newEventData:SongEventData = new SongEventData(cursorSnappedMs, eventKindToPlace, eventDataToPlace.clone());
var newEventData:SongEventData = new SongEventData(cursorSnappedMs, eventKindToPlace, eventDataToPlace.copy());
performCommand(new AddEventsCommand([newEventData], FlxG.keys.pressed.CONTROL));
}

View file

@ -1,16 +0,0 @@
package funkin.util.tools;
import haxe.DynamicAccess;
class DynamicAccessTools
{
/**
* Creates a full clone of the input `DynamicAccess`.
* @param input The `Dynamic` to clone.
* @return A clone of the input `Dynamic`.
*/
public static function clone<T>(input:DynamicAccess<T>):DynamicAccess<T>
{
return Reflect.copy(input);
}
}