Skip to content

Commit

Permalink
Cleanup for consistency with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jul 22, 2024
1 parent f7c4cfc commit 4528a13
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 405 deletions.
138 changes: 0 additions & 138 deletions include/xrpl/protocol/Asset.h

This file was deleted.

3 changes: 1 addition & 2 deletions include/xrpl/protocol/Feature.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace detail {
// Feature.cpp. Because it's only used to reserve storage, and determine how
// large to make the FeatureBitset, it MAY be larger. It MUST NOT be less than
// the actual number of amendments. A LogicError on startup will verify this.
static constexpr std::size_t numFeatures = 79;
static constexpr std::size_t numFeatures = 78;

/** Amendments that this server supports and the default voting behavior.
Whether they are enabled depends on the Rules defined in the validated
Expand Down Expand Up @@ -370,7 +370,6 @@ extern uint256 const featureNFTokenMintOffer;
extern uint256 const fixReducedOffersV2;
extern uint256 const fixEnforceNFTokenTrustline;
extern uint256 const fixInnerObjTemplate2;
extern uint256 const featureInvariantsV1_1;
extern uint256 const featureMPTokensV1;

} // namespace ripple
Expand Down
21 changes: 0 additions & 21 deletions include/xrpl/protocol/Indexes.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <xrpl/protocol/STXChainBridge.h>
#include <xrpl/protocol/Serializer.h>
#include <xrpl/protocol/UintTypes.h>
#include <xrpl/protocol/jss.h>
#include <cstdint>

namespace ripple {
Expand Down Expand Up @@ -337,26 +336,6 @@ getTicketIndex(AccountID const& account, std::uint32_t uSequence);
uint256
getTicketIndex(AccountID const& account, SeqProxy ticketSeq);

template <class... keyletParams>
struct keyletDesc
{
std::function<Keylet(keyletParams...)> function;
Json::StaticString expectedLEName;
bool includeInTests;
};

// This list should include all of the keylet functions that take a single
// AccountID parameter.
std::array<keyletDesc<AccountID const&>, 6> const directAccountKeylets{
{{&keylet::account, jss::AccountRoot, false},
{&keylet::ownerDir, jss::DirectoryNode, true},
{&keylet::signers, jss::SignerList, true},
// It's normally impossible to create an item at nftpage_min, but
// test it anyway, since the invariant checks for it.
{&keylet::nftpage_min, jss::NFTokenPage, true},
{&keylet::nftpage_max, jss::NFTokenPage, true},
{&keylet::did, jss::DID, true}}};

uint192
getMptID(AccountID const& account, std::uint32_t sequence);

Expand Down
8 changes: 6 additions & 2 deletions include/xrpl/protocol/Issue.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ class Issue
Currency currency{};
AccountID account{};

Issue() = default;
Issue()
{
}

Issue(Currency const& c, AccountID const& a);
Issue(Currency const& c, AccountID const& a) : currency(c), account(a)
{
}

AccountID const&
getIssuer() const;
Expand Down
2 changes: 1 addition & 1 deletion include/xrpl/protocol/detail/STVar.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern nonPresentObject_t nonPresentObject;
class STVar
{
private:
// The largest "small object" we can accommodate
// The largest "small object" we can accomodate
static std::size_t constexpr max_size = 72;

std::aligned_storage<max_size>::type d_;
Expand Down
118 changes: 0 additions & 118 deletions src/libxrpl/protocol/Asset.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/libxrpl/protocol/Feature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ REGISTER_FEATURE(NFTokenMintOffer, Supported::yes, VoteBehavior::De
REGISTER_FIX (fixReducedOffersV2, Supported::yes, VoteBehavior::DefaultNo);
REGISTER_FIX (fixEnforceNFTokenTrustline, Supported::yes, VoteBehavior::DefaultNo);
REGISTER_FIX (fixInnerObjTemplate2, Supported::yes, VoteBehavior::DefaultNo);
// InvariantsV1_1 will be changes to Supported::yes when all the
// invariants expected to be included under it are complete.
REGISTER_FEATURE(InvariantsV1_1, Supported::no, VoteBehavior::DefaultNo);
REGISTER_FEATURE(MPTokensV1, Supported::yes, VoteBehavior::DefaultNo);

// The following amendments are obsolete, but must remain supported
Expand Down
4 changes: 0 additions & 4 deletions src/libxrpl/protocol/Issue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@

namespace ripple {

Issue::Issue(Currency const& c, AccountID const& a) : currency(c), account(a)
{
}

AccountID const&
Issue::getIssuer() const
{
Expand Down
Loading

0 comments on commit 4528a13

Please sign in to comment.