From 92785166ef37a6a57fe2172880f2139afab2d7b0 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 19 Oct 2023 01:03:58 -0400 Subject: [PATCH] Remove duplicate pushUnique --- source/funkin/util/tools/ArrayTools.hx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/funkin/util/tools/ArrayTools.hx b/source/funkin/util/tools/ArrayTools.hx index 077b1b8f8..a88f8a861 100644 --- a/source/funkin/util/tools/ArrayTools.hx +++ b/source/funkin/util/tools/ArrayTools.hx @@ -23,13 +23,6 @@ class ArrayTools return result; } - public static function pushUnique(array:Array, element:T):Bool - { - if (array.contains(element)) return false; - array.push(element); - return true; - } - /** * Return the first element of the array that satisfies the predicate, or null if none do. * @param input The array to search