File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
JoinRpg.Portal/Controllers Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -65,22 +65,6 @@ public static IEnumerable<T> WhereNotNull<T>(this IEnumerable<T?> source)
6565
6666 public static IEnumerable < T > OrEmptyList < T > ( this IEnumerable < T > ? collection ) => collection ?? Enumerable . Empty < T > ( ) ;
6767
68- public static IEnumerable < T > Shuffle < T > (
69- this IEnumerable < T > source )
70- {
71- ArgumentNullException . ThrowIfNull ( source ) ;
72-
73- var sourceArray = source . ToArray ( ) ;
74-
75- for ( var n = 0 ; n < sourceArray . Length ; n ++ )
76- {
77- var k = Random . Shared . Next ( n , sourceArray . Length ) ;
78- yield return sourceArray [ k ] ;
79-
80- sourceArray [ k ] = sourceArray [ n ] ;
81- }
82- }
83-
8468 public static IEnumerable < T > UnionUntilTotalCount < T > (
8569 this IReadOnlyCollection < T > alreadyTaken ,
8670 IEnumerable < T > toAdd ,
Original file line number Diff line number Diff line change 33using JoinRpg . Data . Interfaces ;
44using JoinRpg . DataModel ;
55using JoinRpg . Domain ;
6- using JoinRpg . Helpers ;
76using JoinRpg . Portal . Controllers . Common ;
87using JoinRpg . Portal . Infrastructure ;
98using JoinRpg . Portal . Infrastructure . Authorization ;
1817using Microsoft . AspNetCore . Authorization ;
1918using Microsoft . AspNetCore . Http . Extensions ;
2019using Microsoft . AspNetCore . Mvc ;
20+ using MoreLinq ;
2121
2222namespace JoinRpg . Portal . Controllers ;
2323
You can’t perform that action at this time.
0 commit comments