Skip to content

Commit e5e9d3d

Browse files
Remove json-based ctor from extended responses
1 parent 2907cde commit e5e9d3d

14 files changed

+0
-77
lines changed

include/iota/api/responses/get_account_data.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ class GetAccountData : public Base {
5454
const std::vector<Models::Bundle>& transferBundle, const int64_t& balance,
5555
const int64_t& duration);
5656

57-
/**
58-
* Json-based ctor.
59-
*
60-
* @param res json to be used for deserialization.
61-
*/
62-
explicit GetAccountData(const json& res);
63-
6457
/**
6558
* Default dtor.
6659
*/

include/iota/api/responses/get_balances_and_format.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ class GetBalancesAndFormat : public Base {
6161
GetBalancesAndFormat(const std::vector<Models::Input>& inputs, const int64_t& totalBalance,
6262
const int64_t& duration);
6363

64-
/**
65-
* Json-based ctor.
66-
*
67-
* @param res json to be used for deserialization.
68-
*/
69-
explicit GetBalancesAndFormat(const json& res);
70-
7164
/**
7265
* Default dtor.
7366
*/

include/iota/api/responses/get_bundle.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ class GetBundle : public Base {
4141
*/
4242
GetBundle() = default;
4343

44-
/**
45-
* Json-based ctor.
46-
*
47-
* @param res json to be used for deserialization.
48-
*/
49-
explicit GetBundle(const json& res);
50-
5144
/**
5245
* Full init ctor.
5346
*

include/iota/api/responses/get_new_addresses.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ class GetNewAddresses : public Base {
4545
*/
4646
GetNewAddresses() = default;
4747

48-
/**
49-
* Json-based ctor.
50-
*
51-
* @param res json to be used for deserialization.
52-
*/
53-
explicit GetNewAddresses(const json& res);
54-
5548
/**
5649
* Full init ctor.
5750
*/

include/iota/api/responses/get_transfers.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ class GetTransfers : public Base {
4646
*/
4747
GetTransfers() = default;
4848

49-
/**
50-
* Json-based ctor.
51-
*
52-
* @param res json to be used for deserialization.
53-
*/
54-
explicit GetTransfers(const json& res);
55-
5649
/**
5750
* Full init ctor.
5851
*/

include/iota/api/responses/replay_bundle.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ class ReplayBundle : public Base {
4242
*/
4343
ReplayBundle() = default;
4444

45-
/**
46-
* Json-based ctor.
47-
*
48-
* @param res json to be used for deserialization.
49-
*/
50-
explicit ReplayBundle(const json& res);
51-
5245
/**
5346
* Full init ctor.
5447
*/

include/iota/api/responses/send_transfer.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ class SendTransfer : public Base {
4242
*/
4343
SendTransfer() = default;
4444

45-
/**
46-
* Json-based ctor.
47-
*
48-
* @param res json to be used for deserialization
49-
*/
50-
explicit SendTransfer(const json& res);
51-
5245
/**
5346
* Full init ctor.
5447
*/

source/api/responses/get_account_data.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ GetAccountData::GetAccountData(const std::vector<Types::Trytes>& addresses,
3737
: Base(duration), addresses_(addresses), transferBundle_(transferBundle), balance_(balance) {
3838
}
3939

40-
GetAccountData::GetAccountData(const json& res) {
41-
deserialize(res);
42-
}
43-
4440
const std::vector<Types::Trytes>&
4541
GetAccountData::getAddresses() const {
4642
return addresses_;

source/api/responses/get_balances_and_format.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ GetBalancesAndFormat::GetBalancesAndFormat(const std::vector<Models::Input>& inp
3636
: Base(duration), inputs_(inputs), totalBalance_(totalBalance) {
3737
}
3838

39-
GetBalancesAndFormat::GetBalancesAndFormat(const json& res) {
40-
deserialize(res);
41-
}
42-
4339
const std::vector<Models::Input>&
4440
GetBalancesAndFormat::getInput() const {
4541
return inputs_;

source/api/responses/get_bundle.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ GetBundle::GetBundle(const std::vector<Models::Transaction>& transactions, const
3535
: Base(duration), transactions_(transactions) {
3636
}
3737

38-
GetBundle::GetBundle(const json& res) {
39-
deserialize(res);
40-
}
41-
4238
const std::vector<Models::Transaction>&
4339
GetBundle::getTransactions() const {
4440
return transactions_;

0 commit comments

Comments
 (0)