diff --git a/src/include/cpp-crypto/crypto/message.hpp b/src/include/cpp-crypto/crypto/message.hpp index 8dd27f7e..6523f8ac 100644 --- a/src/include/cpp-crypto/crypto/message.hpp +++ b/src/include/cpp-crypto/crypto/message.hpp @@ -21,7 +21,7 @@ namespace Crypto { //////////////////////////////////////////////////////////////////////////////// // Message Class -class Message { +class Message { // LCOV_EXCL_LINE public: //////////////////////////////////////////////////////////////////////////// std::string message; diff --git a/src/include/cpp-crypto/transactions/transaction.hpp b/src/include/cpp-crypto/transactions/transaction.hpp index 78e225fa..c7071798 100644 --- a/src/include/cpp-crypto/transactions/transaction.hpp +++ b/src/include/cpp-crypto/transactions/transaction.hpp @@ -26,11 +26,8 @@ namespace Crypto { namespace transactions { //////////////////////////////////////////////////////////////////////////////// -class Transaction { +class Transaction { // LCOV_EXCL_LINE public: - //////////////////////////////////////////////////////////////////////////// - Transaction() = default; - //////////////////////////////////////////////////////////////////////////// Hash32 getId() const; diff --git a/src/include/cpp-crypto/transactions/transaction_data.hpp b/src/include/cpp-crypto/transactions/transaction_data.hpp index 0c2ebf16..57c3e38b 100644 --- a/src/include/cpp-crypto/transactions/transaction_data.hpp +++ b/src/include/cpp-crypto/transactions/transaction_data.hpp @@ -26,7 +26,7 @@ namespace transactions { //////////////////////////////////////////////////////////////////////////////// // Transaction Data Model -struct TransactionData { +struct TransactionData { // LCOV_EXCL_START uint8_t header { TRANSACTION_DEFAULT_HEADER }; uint8_t version { TRANSACTION_VERSION_TYPE_2 }; uint8_t network { Devnet.version }; @@ -54,7 +54,7 @@ struct TransactionData { signature.resize(SIGNATURE_ECDSA_MAX); secondSignature.resize(SIGNATURE_ECDSA_MAX); }; -}; +}; // LCOV_EXCL_STOP } // namespace transactions diff --git a/src/transactions/types/assets.hpp b/src/transactions/types/assets.hpp index 30800280..4abbb2ec 100644 --- a/src/transactions/types/assets.hpp +++ b/src/transactions/types/assets.hpp @@ -30,7 +30,7 @@ namespace transactions { //////////////////////////////////////////////////////////////////////////////// // AIP-11 Transaction Assets -struct Asset { +struct Asset { // LCOV_EXCL_START Transfer transfer; // Type 0 SecondSignature secondSignature; // Type 1 DelegateRegistration delegateRegistration; // Type 2 @@ -42,7 +42,7 @@ struct Asset { HtlcLock htlcLock; // Type 8 HtlcClaim htlcClaim; // Type 9 HtlcRefund htlcRefund; // Type 10 -}; +}; // LCOV_EXCL_STOP } // namespace transactions } // namespace Crypto diff --git a/src/transactions/types/delegate_registration.hpp b/src/transactions/types/delegate_registration.hpp index c2ad8a8f..6482f331 100644 --- a/src/transactions/types/delegate_registration.hpp +++ b/src/transactions/types/delegate_registration.hpp @@ -32,7 +32,7 @@ constexpr uint8_t USERNAME_MAX = 20U; // Max Length: 20 // // --- -struct DelegateRegistration { +struct DelegateRegistration { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// uint8_t length { 0U }; std::array username { }; @@ -55,9 +55,6 @@ struct DelegateRegistration { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - DelegateRegistration() = default; }; } // namespace transactions diff --git a/src/transactions/types/delegate_resignation.hpp b/src/transactions/types/delegate_resignation.hpp index 83a3df2f..09af8797 100644 --- a/src/transactions/types/delegate_resignation.hpp +++ b/src/transactions/types/delegate_resignation.hpp @@ -17,7 +17,7 @@ namespace transactions { //////////////////////////////////////////////////////////////////////////////// // Type 7 - Delegate Resignation // No Asset data needed. -struct DelegateResignation {}; +struct DelegateResignation {}; // LCOV_EXCL_LINE } // namespace transactions } // namespace Crypto diff --git a/src/transactions/types/htlc_claim.hpp b/src/transactions/types/htlc_claim.hpp index 4c765146..ed67faf6 100644 --- a/src/transactions/types/htlc_claim.hpp +++ b/src/transactions/types/htlc_claim.hpp @@ -26,7 +26,7 @@ namespace transactions { //////////////////////////////////////////////////////////////////////////////// // Type 9 - Htlc Claim -struct HtlcClaim { +struct HtlcClaim { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// Hash32 id { }; Hash32 secret { }; @@ -48,9 +48,6 @@ struct HtlcClaim { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - HtlcClaim() = default; }; } // namespace transactions diff --git a/src/transactions/types/htlc_lock.hpp b/src/transactions/types/htlc_lock.hpp index 18e24d6f..34ff7ae8 100644 --- a/src/transactions/types/htlc_lock.hpp +++ b/src/transactions/types/htlc_lock.hpp @@ -29,7 +29,7 @@ constexpr size_t HTLC_LOCK_SIZE = 66U; //////////////////////////////////////////////////////////////////////////////// // Type 8 - Htlc Lock -struct HtlcLock { +struct HtlcLock { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// uint64_t amount { 0ULL }; Hash32 secretHash { }; @@ -54,9 +54,6 @@ struct HtlcLock { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - HtlcLock() = default; }; } // namespace transactions diff --git a/src/transactions/types/htlc_refund.hpp b/src/transactions/types/htlc_refund.hpp index 88490391..7257eae8 100644 --- a/src/transactions/types/htlc_refund.hpp +++ b/src/transactions/types/htlc_refund.hpp @@ -26,7 +26,7 @@ namespace transactions { //////////////////////////////////////////////////////////////////////////////// // Type 10 - Htlc Refund -struct HtlcRefund { +struct HtlcRefund { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// Hash32 id { }; @@ -47,9 +47,6 @@ struct HtlcRefund { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - HtlcRefund() = default; }; diff --git a/src/transactions/types/ipfs.hpp b/src/transactions/types/ipfs.hpp index 93d72415..7cdf3ddd 100644 --- a/src/transactions/types/ipfs.hpp +++ b/src/transactions/types/ipfs.hpp @@ -29,7 +29,7 @@ constexpr uint8_t IPFS_MAX = 90U; //////////////////////////////////////////////////////////////////////////////// // Type 5 - Ipfs -struct Ipfs { +struct Ipfs { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// std::vector dag; @@ -49,9 +49,6 @@ struct Ipfs { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - Ipfs() = default; }; } // namespace transactions diff --git a/src/transactions/types/multi_payment.hpp b/src/transactions/types/multi_payment.hpp index dec61110..61a2597c 100644 --- a/src/transactions/types/multi_payment.hpp +++ b/src/transactions/types/multi_payment.hpp @@ -44,7 +44,7 @@ constexpr auto KEY_N_PAYMENTS_LABEL = "n_payments"; // Particularly in embedded environments. // // --- -struct MultiPayment { +struct MultiPayment { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// // Network Limit: 100 uint16_t n_payments { 0U }; @@ -77,9 +77,6 @@ struct MultiPayment { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - MultiPayment() = default; }; } // namespace transactions diff --git a/src/transactions/types/second_signature.hpp b/src/transactions/types/second_signature.hpp index 99d0b990..136be571 100644 --- a/src/transactions/types/second_signature.hpp +++ b/src/transactions/types/second_signature.hpp @@ -24,7 +24,7 @@ namespace transactions { //////////////////////////////////////////////////////////////////////////////// // Type 1 - Second Signature Registration -struct SecondSignature { +struct SecondSignature { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// PublicKeyBytes publicKey { }; @@ -47,9 +47,6 @@ struct SecondSignature { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - SecondSignature() = default; }; } // namespace transactions diff --git a/src/transactions/types/transfer.hpp b/src/transactions/types/transfer.hpp index d0d6be17..4aed7f90 100644 --- a/src/transactions/types/transfer.hpp +++ b/src/transactions/types/transfer.hpp @@ -30,7 +30,7 @@ constexpr size_t TRANSACTION_TYPE_TRANSFER_SIZE = 33UL; //////////////////////////////////////////////////////////////////////////////// // Type 0 - Transfer -struct Transfer { +struct Transfer { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// uint64_t amount { 0ULL }; uint32_t expiration { 0UL }; @@ -53,9 +53,6 @@ struct Transfer { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - Transfer() = default; }; } // namespace transactions diff --git a/src/transactions/types/vote.hpp b/src/transactions/types/vote.hpp index 87b5c9f5..ba103071 100644 --- a/src/transactions/types/vote.hpp +++ b/src/transactions/types/vote.hpp @@ -30,7 +30,7 @@ constexpr uint8_t VOTES_LEN = VOTE_LIMIT * VOTE_LEN; //////////////////////////////////////////////////////////////////////////////// // Type 3 - Vote -struct Vote { +struct Vote { // LCOV_EXCL_LINE //////////////////////////////////////////////////////////////////////////// uint8_t count { 0U }; std::array votes { }; // (1 + 33)N @@ -52,9 +52,6 @@ struct Vote { //////////////////////////////////////////////////////////////////////////// static void addToJson(DynamicJsonDocument &jsonDoc, const std::map &map); - - //////////////////////////////////////////////////////////////////////////// - Vote() = default; }; } // namespace transactions