Remove broken unlocks.

This commit is contained in:
JoelKatz
2013-03-04 15:53:27 -08:00
parent a2ca787bfb
commit 93f79ca204

View File

@@ -885,7 +885,6 @@ Json::Value RPCHandler::doAccountLines(Json::Value jvRequest)
if (!lpLedger)
return jvResult;
ScopedUnlock su(theApp->getMasterLock());
if (!jvRequest.isMember("account"))
return rpcError(rpcINVALID_PARAMS);
@@ -966,8 +965,6 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest)
if (!lpLedger)
return jvResult;
ScopedUnlock su(theApp->getMasterLock());
if (!jvRequest.isMember("account"))
return rpcError(rpcINVALID_PARAMS);
@@ -1039,8 +1036,6 @@ Json::Value RPCHandler::doBookOffers(Json::Value jvRequest)
if (!lpLedger)
return jvResult;
ScopedUnlock su(theApp->getMasterLock());
if (!jvRequest.isMember("taker_pays") || !jvRequest.isMember("taker_gets"))
return rpcError(rpcINVALID_PARAMS);