mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-26 17:46:08 -05:00
Remove DynamicAccessTools entirely.
This commit is contained in:
parent
2fa1d18dce
commit
f671cc8569
3 changed files with 1 additions and 18 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue