Skip to content

Commit

Permalink
chore: remove unused generic parameters (#8249)
Browse files Browse the repository at this point in the history
These generic parameters are not used by these functions so we can just
remove them.
  • Loading branch information
TomAFrench authored Aug 28, 2024
1 parent 10d7edd commit 00ed045
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ unconstrained fn count_private_items<T, let N: u32>(array: [T; N]) -> u32 where
length
}

pub fn get_combined_order_hints_asc<T, S, let N: u32>(
pub fn get_combined_order_hints_asc<T, let N: u32>(
array_lt: [T; N],
array_gte: [T; N]
) -> [CombinedOrderHint; N] where T: Ordered + Eq + Empty {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ pub fn get_order_hints<T, let N: u32>(
hints
}

pub fn get_order_hints_asc<T, S, let N: u32>(array: [T; N]) -> [OrderHint; N] where T: Ordered + Eq + Empty {
pub fn get_order_hints_asc<T, let N: u32>(array: [T; N]) -> [OrderHint; N] where T: Ordered + Eq + Empty {
get_order_hints(array, compare_by_counter_empty_padded_asc)
}

pub fn get_order_hints_desc<T, S, let N: u32>(array: [T; N]) -> [OrderHint; N] where T: Ordered + Eq + Empty {
pub fn get_order_hints_desc<T, let N: u32>(array: [T; N]) -> [OrderHint; N] where T: Ordered + Eq + Empty {
get_order_hints(array, compare_by_counter_empty_padded_desc)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ fn get_split_order_hints<T, let N: u32>(
SplitOrderHints { sorted_counters_lt, sorted_counters_gte, sorted_indexes }
}

pub fn get_split_order_hints_asc<T, S, let N: u32>(
pub fn get_split_order_hints_asc<T, let N: u32>(
array: [T; N],
split_counter: u32
) -> SplitOrderHints<N> where T: Ordered + Eq + Empty {
get_split_order_hints(array, split_counter, true)
}

pub fn get_split_order_hints_desc<T, S, let N: u32>(
pub fn get_split_order_hints_desc<T, let N: u32>(
array: [T; N],
split_counter: u32
) -> SplitOrderHints<N> where T: Ordered + Eq + Empty {
Expand Down

0 comments on commit 00ed045

Please sign in to comment.