Skip to content

Commit 2a4d8ff

Browse files
committed
Remove unused constructors from backing container
Removing this constructor simplifies the interface, by reducing the number of different ways to construct the classes and avoiding exposing the implementation detail of what type of container `json_objectt` and `json_arrayt` are backed by.
1 parent d2c756a commit 2a4d8ff

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/util/json.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ class json_arrayt:public jsont
161161
{
162162
}
163163

164-
explicit json_arrayt(arrayt &&entries)
165-
: jsont(kindt::J_ARRAY, std::move(entries))
166-
{
167-
}
168-
169164
explicit json_arrayt(std::initializer_list<jsont> &&initializer_list)
170165
: jsont(kindt::J_ARRAY, arrayt{initializer_list})
171166
{
@@ -305,11 +300,6 @@ class json_objectt:public jsont
305300
{
306301
}
307302

308-
explicit json_objectt(objectt &&objects)
309-
: jsont(kindt::J_OBJECT, std::move(objects))
310-
{
311-
}
312-
313303
explicit json_objectt(
314304
std::initializer_list<typename objectt::value_type> &&initializer_list)
315305
: jsont(kindt::J_OBJECT, objectt{initializer_list})

0 commit comments

Comments
 (0)