mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 00:02:14 +11:00
🔥 removed legacy code
This commit is contained in:
parent
3bb7640cd6
commit
dc9b2e70c2
3 changed files with 1 additions and 23 deletions
|
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
#include <json/json.h> // to be removed later
|
||||
#include <deque>
|
||||
#include "ccash_config.hpp"
|
||||
#include "change_flag.h"
|
||||
|
|
@ -19,5 +18,4 @@ public:
|
|||
|
||||
std::string GetLogs() noexcept;
|
||||
void AddTrans(const std::string &from, const std::string &to, uint32_t amount, time_t time) noexcept;
|
||||
Json::Value Serialize() const; // to be removed later
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#pragma once
|
||||
#include <json/json.h> //to be removed later
|
||||
#include "xxhash_str.h"
|
||||
#include "bank_dom_final_models.h"
|
||||
#include "log.h"
|
||||
|
|
@ -19,6 +18,4 @@ struct User
|
|||
#endif
|
||||
User(const bank_dom::User &u) noexcept;
|
||||
bank_dom::User Encode() const noexcept;
|
||||
|
||||
Json::Value Serialize() const; //to be removed later
|
||||
};
|
||||
|
|
|
|||
19
src/log.cpp
19
src/log.cpp
|
|
@ -38,21 +38,4 @@ std::string Log::GetLogs() noexcept
|
|||
log_flag.SetChangesOff();
|
||||
}
|
||||
return log_snapshot;
|
||||
}
|
||||
|
||||
Json::Value Log::Serialize() const
|
||||
{
|
||||
Json::Value res;
|
||||
for (uint32_t i = 0; i < data.size(); ++i)
|
||||
{
|
||||
res[i]["to"] = data[i].to;
|
||||
res[i]["from"] = data[i].from;
|
||||
res[i]["amount"] = (Json::UInt)data[i].amount;
|
||||
#ifdef _USE_32BIT_TIME_T
|
||||
res[i]["time"] = (Json::Int)data[i].time;
|
||||
#else
|
||||
res[i]["time"] = (Json::Int64)data[i].time;
|
||||
#endif
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue