Skip to content

Commit

Permalink
Cleanup (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandreichweinbmw authored Mar 1, 2025
1 parent acc0b4b commit 4e4f7dd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
6 changes: 3 additions & 3 deletions include/etl/bit_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ namespace etl
while (nbits != 0)
{
unsigned char mask_width = static_cast<unsigned char>(etl::min(nbits, bits_available_in_char));
typedef typename etl::make_unsigned<T>::type chunk_t;

typedef typename etl::make_unsigned<T>::type chunk_t;
chunk_t chunk = get_chunk(mask_width);

nbits -= mask_width;
Expand Down Expand Up @@ -529,7 +529,7 @@ namespace etl

typedef char value_type;
typedef value_type* iterator;
typedef const value_type* const_iterator;
typedef const value_type* const_iterator;
typedef etl::span<value_type> callback_parameter_type;
typedef etl::delegate<void(callback_parameter_type)> callback_type;

Expand Down
6 changes: 1 addition & 5 deletions include/etl/intrusive_forward_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,7 @@ namespace etl
}

p_previous = p_link;

if (p_link != ETL_NULLPTR)
{
p_link = p_link->link_type::etl_next;
}
p_link = p_link->link_type::etl_next;
}

return ETL_NULLPTR;
Expand Down
10 changes: 5 additions & 5 deletions include/etl/private/delegate_cpp03.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ namespace etl
//***********************************
template <typename TDelegate, typename TReturn, typename TParam>
struct call_if_impl
{
{
etl::optional<TReturn> call_if(TParam param)
{
TDelegate& d = static_cast<TDelegate&>(*this);
TDelegate& d = static_cast<TDelegate&>(*this);

etl::optional<TReturn> result;

if (d.is_valid())
Expand All @@ -88,8 +88,8 @@ namespace etl
{
bool call_if()
{
TDelegate& d = static_cast<TDelegate&>(*this);
TDelegate& d = static_cast<TDelegate&>(*this);

if (d.is_valid())
{
d();
Expand Down
1 change: 0 additions & 1 deletion include/etl/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ SOFTWARE.
#include "functional.h"
#include "static_assert.h"
#include "placement_new.h"
#include "algorithm.h"
#include "initializer_list.h"

#include <stddef.h>
Expand Down

0 comments on commit 4e4f7dd

Please sign in to comment.