Skip to content

Commit

Permalink
Remove not needed binding element write.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinH committed Sep 20, 2023
1 parent 0d15222 commit f01ae8b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 60 deletions.
6 changes: 0 additions & 6 deletions include/tao/json/binding/element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ namespace tao::json::binding
return v.*P;
}

template< typename W >
static void write( C& v, W&& w ) noexcept( std::is_nothrow_assignable_v< value_t, decltype( std::forward< W > ) > )
{
v.*P = std::forward< W >( w );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& x )
{
Expand Down
54 changes: 0 additions & 54 deletions include/tao/json/binding/internal/elementw.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( N )
{
P( c, std::forward< W >( w ) );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& c )
{
Expand All @@ -48,12 +42,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( N )
{
P( c ) = std::forward< W >( w );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& c )
{
Expand All @@ -73,12 +61,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( N )
{
( c.*P )( std::forward< W >( w ) );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >( v ), C& c )
{
Expand All @@ -100,12 +82,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( true )
{
P( c, std::forward< W >( w ) );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& c )
{
Expand All @@ -125,12 +101,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( false )
{
P( c, std::forward< W >( w ) );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& c )
{
Expand All @@ -150,12 +120,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( true )
{
P( c ) = std::forward< W >( w );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& c )
{
Expand All @@ -175,12 +139,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( false )
{
P( c ) = std::forward< W >( w );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >& v, C& c )
{
Expand All @@ -200,12 +158,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( true )
{
( c.*P )( std::forward< W >( w ) );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >( v ), C& c )
{
Expand All @@ -225,12 +177,6 @@ namespace tao::json::binding::internal
using write_class_t = C;
using write_value_t = std::decay_t< T >;

template< typename W >
static void write( C& c, W&& w ) noexcept( false )
{
( c.*P )( std::forward< W >( w ) );
}

template< template< typename... > class Traits >
static void to( const basic_value< Traits >( v ), C& c )
{
Expand Down

0 comments on commit f01ae8b

Please sign in to comment.