From 6fed3acddafe98a958517d79c0e811627f95050f Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 19 Nov 2020 17:26:05 -0500 Subject: [PATCH] add ProfilingList.RemoveAll() --- Shared/ProfilingList.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Shared/ProfilingList.cs b/Shared/ProfilingList.cs index 470585e..9c53cd6 100644 --- a/Shared/ProfilingList.cs +++ b/Shared/ProfilingList.cs @@ -1,4 +1,5 @@ -using System.Collections; +using System; +using System.Collections; using System.Collections.Generic; using System.Diagnostics; @@ -60,6 +61,10 @@ namespace SemiColinGames { return items.Remove(item); } + public int RemoveAll(Predicate match) { + return items.RemoveAll(match); + } + public void CopyTo(T[] array, int arrayIndex) { items.CopyTo(array, arrayIndex); }