mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove unused functions and clean up some comments
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef RIPPLE_INSTANCECOUNTER_H
|
||||
#define RIPPLE_INSTANCECOUNTER_H
|
||||
|
||||
// VFALCO TODO Clean up this junk, remove the macros, replace
|
||||
// VFALCO TODO Clean this up, remove the macros, replace
|
||||
// with a robust leak checker when we have atomics.
|
||||
//
|
||||
|
||||
@@ -38,7 +38,7 @@ protected:
|
||||
public:
|
||||
typedef std::pair<std::string, int> InstanceCount;
|
||||
|
||||
InstanceType(const char *n) : mInstances(0), mName(n)
|
||||
explicit InstanceType (const char *n) : mInstances(0), mName(n)
|
||||
{
|
||||
mNextInstance = sHeadInstance;
|
||||
sHeadInstance = this;
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
{
|
||||
if (sMultiThreaded)
|
||||
{
|
||||
// VFALCO NOTE Junk that will go away with atomics
|
||||
// VFALCO NOTE This will go away with atomics
|
||||
mLock.lock();
|
||||
++mInstances;
|
||||
mLock.unlock();
|
||||
|
||||
@@ -160,7 +160,7 @@ bool RandomNumbers::platformAddEntropy ()
|
||||
|
||||
void RandomNumbers::platformAddPerformanceMonitorEntropy ()
|
||||
{
|
||||
// VFALCO This is how we simulate local functions
|
||||
// VFALCO TODO Remove all this fancy stuff
|
||||
struct
|
||||
{
|
||||
int64 operator() () const
|
||||
|
||||
@@ -19,7 +19,10 @@
|
||||
#ifndef RIPPLE_SUSTAIN_H
|
||||
#define RIPPLE_SUSTAIN_H
|
||||
|
||||
// VFALCO TODO figure out what the heck this is??
|
||||
// "Sustain" is a system for a buddy process that monitors the main process
|
||||
// and relaunches it on a fault.
|
||||
//
|
||||
// VFALCO TODO Rename this and put it in a class.
|
||||
extern bool HaveSustain();
|
||||
extern std::string StopSustain();
|
||||
extern std::string DoSustain();
|
||||
|
||||
@@ -3,8 +3,6 @@ std::map <int, LedgerEntryFormat*> LedgerEntryFormat::byType;
|
||||
|
||||
std::map <std::string, LedgerEntryFormat*> LedgerEntryFormat::byName;
|
||||
|
||||
// VFALCO TODO surely we can think of a better way than macros?
|
||||
|
||||
#define LEF_BASE \
|
||||
<< SOElement(sfLedgerIndex, SOE_OPTIONAL) \
|
||||
<< SOElement(sfLedgerEntryType, SOE_REQUIRED) \
|
||||
|
||||
@@ -30,7 +30,7 @@ static const uint160 u160_zero(0), u160_one(1);
|
||||
static inline const uint160& get_u160_zero() { return u160_zero; }
|
||||
static inline const uint160& get_u160_one() { return u160_one; }
|
||||
|
||||
// VFALCO TODO replace these with language constructs, gah!
|
||||
// VFALCO TODO replace these with language constructs
|
||||
#define CURRENCY_XRP get_u160_zero()
|
||||
#define CURRENCY_ONE get_u160_one() // Used as a place holder.
|
||||
#define CURRENCY_BAD uint160(0x5852500000000000) // Do not allow XRP as an IOU currency.
|
||||
|
||||
Reference in New Issue
Block a user