Skip to content

Commit

Permalink
undid last change
Browse files Browse the repository at this point in the history
  • Loading branch information
omegaleo committed Jul 21, 2024
1 parent 665d38d commit 2755d6e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Runtime/Extensions/IListExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,5 @@ public static T Next<T>(this List<T> array, ref int currentIndex)
{
return array[currentIndex++ % array.Count];
}

public static bool TryGetFromIndex<T>(this List<T> list, int index, out T value)
{
try
{
value = list[index];
return true;
}
catch (Exception e)
{
value = default;
return false;
}
}
}
}

0 comments on commit 2755d6e

Please sign in to comment.