Skip to content

Commit

Permalink
Delete non-critical
Browse files Browse the repository at this point in the history
  • Loading branch information
spreadsort committed Dec 17, 2022
1 parent db798f6 commit 2e6674d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 0 additions & 2 deletions include/boost/sort/spreadsort/detail/float_sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,6 @@ namespace spreadsort {
float_sort(RandomAccessIter first, RandomAccessIter last, Div_type,
Right_shift rshift)
{
BOOST_STATIC_ASSERT(sizeof(boost::uintmax_t) >= sizeof(Div_type));
boost::sort::pdqsort(first, last);
}

Expand Down Expand Up @@ -819,7 +818,6 @@ namespace spreadsort {
float_sort(RandomAccessIter first, RandomAccessIter last, Div_type,
Right_shift rshift, Compare comp)
{
BOOST_STATIC_ASSERT(sizeof(boost::uintmax_t) >= sizeof(Div_type));
boost::sort::pdqsort(first, last, comp);
}
}
Expand Down
6 changes: 0 additions & 6 deletions include/boost/sort/spreadsort/detail/integer_sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ namespace spreadsort {
//defaulting to boost::sort::pdqsort when integer_sort won't work
integer_sort(RandomAccessIter first, RandomAccessIter last, Div_type)
{
//Warning that we're using boost::sort::pdqsort, even though integer_sort was called
BOOST_STATIC_ASSERT( sizeof(Div_type) <= sizeof(size_t) );
boost::sort::pdqsort(first, last);
}

Expand Down Expand Up @@ -437,8 +435,6 @@ namespace spreadsort {
integer_sort(RandomAccessIter first, RandomAccessIter last, Div_type,
Right_shift shift, Compare comp)
{
//Warning that we're using boost::sort::pdqsort, even though integer_sort was called
BOOST_STATIC_ASSERT( sizeof(Div_type) <= sizeof(size_t) );
boost::sort::pdqsort(first, last, comp);
}

Expand Down Expand Up @@ -481,8 +477,6 @@ namespace spreadsort {
integer_sort(RandomAccessIter first, RandomAccessIter last, Div_type,
Right_shift shift)
{
//Warning that we're using boost::sort::pdqsort, even though integer_sort was called
BOOST_STATIC_ASSERT( sizeof(Div_type) <= sizeof(size_t) );
boost::sort::pdqsort(first, last);
}
}
Expand Down
15 changes: 5 additions & 10 deletions include/boost/sort/spreadsort/detail/string_sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,7 @@ namespace spreadsort {
string_sort(RandomAccessIter first, RandomAccessIter last,
Unsigned_char_type)
{
//Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 );
// Use boost::sort::pdqsort if the char_type is too large for string_sort.
boost::sort::pdqsort(first, last);
}

Expand All @@ -725,8 +724,7 @@ namespace spreadsort {
{
typedef typename std::iterator_traits<RandomAccessIter>::value_type
Data_type;
//Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 );
// Use boost::sort::pdqsort if the char_type is too large for string_sort.
boost::sort::pdqsort(first, last, std::greater<Data_type>());
}

Expand All @@ -751,8 +749,7 @@ namespace spreadsort {
string_sort(RandomAccessIter first, RandomAccessIter last,
Get_char get_character, Get_length length, Unsigned_char_type)
{
//Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 );
// Use boost::sort::pdqsort if the char_type is too large for string_sort.
boost::sort::pdqsort(first, last);
}

Expand All @@ -779,8 +776,7 @@ namespace spreadsort {
string_sort(RandomAccessIter first, RandomAccessIter last,
Get_char get_character, Get_length length, Compare comp, Unsigned_char_type)
{
//Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 );
// Use boost::sort::pdqsort if the char_type is too large for string_sort.
boost::sort::pdqsort(first, last, comp);
}

Expand All @@ -806,8 +802,7 @@ namespace spreadsort {
reverse_string_sort(RandomAccessIter first, RandomAccessIter last,
Get_char get_character, Get_length length, Compare comp, Unsigned_char_type)
{
//Warning that we're using boost::sort::pdqsort, even though string_sort was called
BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 );
// Use boost::sort::pdqsort if the char_type is too large for string_sort.
boost::sort::pdqsort(first, last, comp);
}
}
Expand Down

0 comments on commit 2e6674d

Please sign in to comment.