mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
remove unused offers code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user