diff options
Diffstat (limited to 'src/rpc-server/commands/trex_rpc_cmd_test.cpp')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_test.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_test.cpp b/src/rpc-server/commands/trex_rpc_cmd_test.cpp index 382279ba..3153317e 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_test.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_test.cpp @@ -32,11 +32,8 @@ using namespace std; trex_rpc_cmd_rc_e TrexRpcCmdTestAdd::_run(const Json::Value ¶ms, Json::Value &result) { - const Json::Value &x = params["x"]; - const Json::Value &y = params["y"]; - result["result"] = parse_int(params, "x", result) + parse_int(params, "y", result); - + return (TREX_RPC_CMD_OK); } @@ -48,9 +45,6 @@ TrexRpcCmdTestAdd::_run(const Json::Value ¶ms, Json::Value &result) { trex_rpc_cmd_rc_e TrexRpcCmdTestSub::_run(const Json::Value ¶ms, Json::Value &result) { - const Json::Value &x = params["x"]; - const Json::Value &y = params["y"]; - result["result"] = parse_int(params, "x", result) - parse_int(params, "y", result); return (TREX_RPC_CMD_OK); |