From f671cc856902713618d270137592a4bb0a606348 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 6 Mar 2024 14:13:48 -0500 Subject: [PATCH] Remove DynamicAccessTools entirely. --- source/funkin/import.hx | 1 - .../funkin/ui/debug/charting/ChartEditorState.hx | 2 +- source/funkin/util/tools/DynamicAccessTools.hx | 16 ---------------- 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 source/funkin/util/tools/DynamicAccessTools.hx diff --git a/source/funkin/import.hx b/source/funkin/import.hx index 66c3470ff..250de99cb 100644 --- a/source/funkin/import.hx +++ b/source/funkin/import.hx @@ -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; diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 191f3cb15..29d7ddf97 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -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)); } diff --git a/source/funkin/util/tools/DynamicAccessTools.hx b/source/funkin/util/tools/DynamicAccessTools.hx deleted file mode 100644 index 14b9a6c68..000000000 --- a/source/funkin/util/tools/DynamicAccessTools.hx +++ /dev/null @@ -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(input:DynamicAccess):DynamicAccess - { - return Reflect.copy(input); - } -}