Remove obsolete Local* code.

This commit is contained in:
Arthur Britto
2012-05-20 01:52:23 -07:00
parent 7ce0a16d21
commit 0010656ff8
4 changed files with 3 additions and 857 deletions

View File

@@ -16,8 +16,6 @@
#include "uint256.h"
#include "Serializer.h"
// #include "LocalAccount.h"
// #include "LocalTransaction.h"
class Ledger;
@@ -37,16 +35,6 @@ protected:
uint32 mLedger; // ledger we last synched to
#if 0
std::map<NewcoinAddress, LocalAccountFamily::pointer> mFamilies;
std::map<NewcoinAddress, LocalAccount::pointer> mAccounts;
std::map<uint256, LocalTransaction::pointer> mTransactions;
LocalAccountFamily::pointer doPrivate(const NewcoinAddress& familySeed, bool do_create, bool do_unlock);
LocalAccountFamily::pointer doPublic(const NewcoinAddress& familyGenerator, bool do_create, bool do_db);
#endif
// void addFamily(const NewcoinAddress& family, const std::string& pubKey, int seq, const std::string& name, const std::string& comment);
public:
Wallet();
@@ -59,47 +47,8 @@ public:
DH* getDh512() { return DHparams_dup(mDh512); }
DH* getDh1024() { return DHparams_dup(mDh1024); }
#if 0
NewcoinAddress addFamily(const std::string& passPhrase, bool lock);
NewcoinAddress addFamily(const NewcoinAddress& familySeed, bool lock);
NewcoinAddress addFamily(const NewcoinAddress& familyGenerator);
NewcoinAddress addRandomFamily(NewcoinAddress& familySeed);
NewcoinAddress findFamilyPK(const NewcoinAddress& familyGenerator);
void delFamily(const NewcoinAddress& familyName);
void getFamilies(std::vector<NewcoinAddress>& familyIDs);
bool lock(const NewcoinAddress& familyName);
#endif
void lock();
void load();
#if 0
// must be a known local account
LocalAccount::pointer parseAccount(const std::string& accountSpecifier);
LocalAccount::pointer getLocalAccount(const NewcoinAddress& famBase, int seq);
LocalAccount::pointer getLocalAccount(const NewcoinAddress& acctID);
LocalAccount::pointer getNewLocalAccount(const NewcoinAddress& family);
LocalAccount::pointer findAccountForTransaction(uint64 amount);
NewcoinAddress peekKey(const NewcoinAddress& family, int seq);
bool getFamilyInfo(const NewcoinAddress& family, std::string& comment);
// bool getFullFamilyInfo(const NewcoinAddress& family, std::string& comment, std::string& pubGen, bool& isLocked);
Json::Value getFamilyJson(const NewcoinAddress& family);
#endif
bool getTxJson(const uint256& txid, Json::Value& value);
bool getTxsJson(const NewcoinAddress& acctid, Json::Value& value);
void addLocalTransactions(Json::Value&);
void syncToLedger(bool force, Ledger* ledger);
static bool unitTest();
};
#endif
// vim:ts=4