diff options
author | imarom <imarom@cisco.com> | 2015-09-01 17:16:27 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-09-01 17:16:27 +0300 |
commit | c17add108ead1ffbdf0c909684c5f8b18632f3d8 (patch) | |
tree | 338c32c9cc782afb35948d69714d4dba4cf6151f /src/rpc-server/commands/trex_rpc_cmd_test.cpp | |
parent | 166e1b639a8cb3d95a6ebae325a4156c6df6c595 (diff) |
draft
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); |