Skip to content

Commit 332a9ba

Browse files
committed
We can assume keys and values are the same size
1 parent b425952 commit 332a9ba

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Src/FastData/Internal/Structures/RangeStructure.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ public RangeContext<TKey, TValue> Create(TKey[] keys, TValue[]? values)
1010
if (values == null)
1111
return new RangeContext<TKey, TValue>(values);
1212

13-
if (keys.Length != values.Length)
14-
throw new InvalidOperationException("The number of values does not match the number of keys.");
15-
1613
Array.Sort(keys, values); // Sort in-place because the structure is already chosen and now have ownership
1714
return new RangeContext<TKey, TValue>(values);
1815
}

0 commit comments

Comments
 (0)