remove unused offers code

This commit is contained in:
CJ Cobb
2021-08-06 12:32:06 -04:00
parent 56e81eb1d8
commit ea5f9162b7
11 changed files with 16 additions and 83 deletions

View File

@@ -39,20 +39,15 @@ void
BackendInterface::writeLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const
std::string&& blob) const
{
assert(key.size() == sizeof(rippled::uint256));
ripple::uint256 key256 = ripple::uint256::fromVoid(key.data());
indexer_.addKey(std::move(key256));
doWriteLedgerObject(
std::move(key),
seq,
std::move(blob),
isCreated,
isDeleted,
std::move(book));
std::move(blob));
}
std::optional<LedgerRange>
BackendInterface::hardFetchLedgerRangeNoThrow() const

View File

@@ -204,10 +204,7 @@ protected:
writeLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const;
std::string&& blob) const;
virtual void
writeTransaction(
@@ -263,10 +260,7 @@ private:
doWriteLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const = 0;
std::string&& blob) const = 0;
virtual bool
doFinishWrites() const = 0;

View File

@@ -148,10 +148,7 @@ void
CassandraBackend::doWriteLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const
std::string&& blob) const
{
BOOST_LOG_TRIVIAL(trace) << "Writing ledger object to cassandra";
makeAndExecuteAsyncWrite(

View File

@@ -833,10 +833,7 @@ public:
doWriteLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const override;
std::string&& blob) const override;
void
writeAccountTransactions(

View File

@@ -60,10 +60,7 @@ void
PostgresBackend::doWriteLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const
std::string&& blob) const
{
if (abortWrite_)
return;

View File

@@ -79,10 +79,7 @@ public:
doWriteLedgerObject(
std::string&& key,
uint32_t seq,
std::string&& blob,
bool isCreated,
bool isDeleted,
std::optional<ripple::uint256>&& book) const override;
std::string&& blob) const override;
void
writeTransaction(