no use for setting/getting defaultuser, it just adds confusion.

This commit is contained in:
Miguel Freitas 2013-10-31 13:48:31 -02:00
parent 2df6ff2420
commit 277c917b53
4 changed files with 6 additions and 5 deletions

View File

@ -14,6 +14,7 @@ libtorrent's.
1) Start with libtorrent:
$ cd libtorrent
$ ./bootstrap.sh
$ ./configure --enable-logging --enable-debug --enable-dht
Note1: 64-bit systems may need "--with-boost-libdir=/usr/lib64"

View File

@ -255,8 +255,6 @@ static const CRPCCommand vRPCCommands[] =
{ "getfollowing", &getfollowing, false, true },
{ "getlasthave", &getlasthave, false, true },
{ "listusernamespartial", &listusernamespartial, false, true },
{ "getdefaultuser", &getdefaultuser, false, true },
{ "setdefaultuser", &setdefaultuser, false, true },
{ "rescandirectmsgs", &rescandirectmsgs, false, true },
};

View File

@ -207,8 +207,6 @@ extern json_spirit::Value unfollow(const json_spirit::Array& params, bool fHelp)
extern json_spirit::Value getfollowing(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getlasthave(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value listusernamespartial(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value getdefaultuser(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value setdefaultuser(const json_spirit::Array& params, bool fHelp);
extern json_spirit::Value rescandirectmsgs(const json_spirit::Array& params, bool fHelp);
#endif

View File

@ -153,6 +153,10 @@ Value listwalletusers(const Array& params, bool fHelp)
return ret;
}
/* [mf] no use for setting/getting defaultuser, it just adds confusion.
all commands should receive user as parameter (including the user for spammsg).
*/
#if 0
Value setdefaultuser(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
@ -199,7 +203,7 @@ Value getdefaultuser(const Array& params, bool fHelp)
return username;
}
#endif
Value signmessage(const Array& params, bool fHelp)
{