summaryrefslogtreecommitdiffstats
path: root/src/rpc-server/commands/trex_rpc_cmd_test.cpp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-09-01 17:16:27 +0300
committerimarom <imarom@cisco.com>2015-09-01 17:16:27 +0300
commitc17add108ead1ffbdf0c909684c5f8b18632f3d8 (patch)
tree338c32c9cc782afb35948d69714d4dba4cf6151f /src/rpc-server/commands/trex_rpc_cmd_test.cpp
parent166e1b639a8cb3d95a6ebae325a4156c6df6c595 (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.cpp8
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 &params, 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 &params, Json::Value &result) {
trex_rpc_cmd_rc_e
TrexRpcCmdTestSub::_run(const Json::Value &params, 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);