Skip to content

Commit f01ae8b

Browse files
committed
Remove not needed binding element write.
1 parent 0d15222 commit f01ae8b

File tree

2 files changed

+0
-60
lines changed

2 files changed

+0
-60
lines changed

include/tao/json/binding/element.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ namespace tao::json::binding
3636
return v.*P;
3737
}
3838

39-
template< typename W >
40-
static void write( C& v, W&& w ) noexcept( std::is_nothrow_assignable_v< value_t, decltype( std::forward< W > ) > )
41-
{
42-
v.*P = std::forward< W >( w );
43-
}
44-
4539
template< template< typename... > class Traits >
4640
static void to( const basic_value< Traits >& v, C& x )
4741
{

include/tao/json/binding/internal/elementw.hpp

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ namespace tao::json::binding::internal
2323
using write_class_t = C;
2424
using write_value_t = std::decay_t< T >;
2525

26-
template< typename W >
27-
static void write( C& c, W&& w ) noexcept( N )
28-
{
29-
P( c, std::forward< W >( w ) );
30-
}
31-
3226
template< template< typename... > class Traits >
3327
static void to( const basic_value< Traits >& v, C& c )
3428
{
@@ -48,12 +42,6 @@ namespace tao::json::binding::internal
4842
using write_class_t = C;
4943
using write_value_t = std::decay_t< T >;
5044

51-
template< typename W >
52-
static void write( C& c, W&& w ) noexcept( N )
53-
{
54-
P( c ) = std::forward< W >( w );
55-
}
56-
5745
template< template< typename... > class Traits >
5846
static void to( const basic_value< Traits >& v, C& c )
5947
{
@@ -73,12 +61,6 @@ namespace tao::json::binding::internal
7361
using write_class_t = C;
7462
using write_value_t = std::decay_t< T >;
7563

76-
template< typename W >
77-
static void write( C& c, W&& w ) noexcept( N )
78-
{
79-
( c.*P )( std::forward< W >( w ) );
80-
}
81-
8264
template< template< typename... > class Traits >
8365
static void to( const basic_value< Traits >( v ), C& c )
8466
{
@@ -100,12 +82,6 @@ namespace tao::json::binding::internal
10082
using write_class_t = C;
10183
using write_value_t = std::decay_t< T >;
10284

103-
template< typename W >
104-
static void write( C& c, W&& w ) noexcept( true )
105-
{
106-
P( c, std::forward< W >( w ) );
107-
}
108-
10985
template< template< typename... > class Traits >
11086
static void to( const basic_value< Traits >& v, C& c )
11187
{
@@ -125,12 +101,6 @@ namespace tao::json::binding::internal
125101
using write_class_t = C;
126102
using write_value_t = std::decay_t< T >;
127103

128-
template< typename W >
129-
static void write( C& c, W&& w ) noexcept( false )
130-
{
131-
P( c, std::forward< W >( w ) );
132-
}
133-
134104
template< template< typename... > class Traits >
135105
static void to( const basic_value< Traits >& v, C& c )
136106
{
@@ -150,12 +120,6 @@ namespace tao::json::binding::internal
150120
using write_class_t = C;
151121
using write_value_t = std::decay_t< T >;
152122

153-
template< typename W >
154-
static void write( C& c, W&& w ) noexcept( true )
155-
{
156-
P( c ) = std::forward< W >( w );
157-
}
158-
159123
template< template< typename... > class Traits >
160124
static void to( const basic_value< Traits >& v, C& c )
161125
{
@@ -175,12 +139,6 @@ namespace tao::json::binding::internal
175139
using write_class_t = C;
176140
using write_value_t = std::decay_t< T >;
177141

178-
template< typename W >
179-
static void write( C& c, W&& w ) noexcept( false )
180-
{
181-
P( c ) = std::forward< W >( w );
182-
}
183-
184142
template< template< typename... > class Traits >
185143
static void to( const basic_value< Traits >& v, C& c )
186144
{
@@ -200,12 +158,6 @@ namespace tao::json::binding::internal
200158
using write_class_t = C;
201159
using write_value_t = std::decay_t< T >;
202160

203-
template< typename W >
204-
static void write( C& c, W&& w ) noexcept( true )
205-
{
206-
( c.*P )( std::forward< W >( w ) );
207-
}
208-
209161
template< template< typename... > class Traits >
210162
static void to( const basic_value< Traits >( v ), C& c )
211163
{
@@ -225,12 +177,6 @@ namespace tao::json::binding::internal
225177
using write_class_t = C;
226178
using write_value_t = std::decay_t< T >;
227179

228-
template< typename W >
229-
static void write( C& c, W&& w ) noexcept( false )
230-
{
231-
( c.*P )( std::forward< W >( w ) );
232-
}
233-
234180
template< template< typename... > class Traits >
235181
static void to( const basic_value< Traits >( v ), C& c )
236182
{

0 commit comments

Comments
 (0)