From 40461a9752437ee541d797f76d2fba77cad9d0e2 Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 31 Aug 2015 17:26:08 +0300 Subject: ...draft... --- src/rpc-server/commands/trex_rpc_cmd_test.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/rpc-server/commands/trex_rpc_cmd_test.cpp') diff --git a/src/rpc-server/commands/trex_rpc_cmd_test.cpp b/src/rpc-server/commands/trex_rpc_cmd_test.cpp index 473cbb70..382279ba 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_test.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_test.cpp @@ -35,8 +35,6 @@ TrexRpcCmdTestAdd::_run(const Json::Value ¶ms, Json::Value &result) { const Json::Value &x = params["x"]; const Json::Value &y = params["y"]; - check_param_count(params, 2, result); - result["result"] = parse_int(params, "x", result) + parse_int(params, "y", result); return (TREX_RPC_CMD_OK); @@ -53,8 +51,6 @@ TrexRpcCmdTestSub::_run(const Json::Value ¶ms, Json::Value &result) { const Json::Value &x = params["x"]; const Json::Value &y = params["y"]; - check_param_count(params, 2, result); - result["result"] = parse_int(params, "x", result) - parse_int(params, "y", result); return (TREX_RPC_CMD_OK); @@ -66,9 +62,6 @@ TrexRpcCmdTestSub::_run(const Json::Value ¶ms, Json::Value &result) { trex_rpc_cmd_rc_e TrexRpcCmdPing::_run(const Json::Value ¶ms, Json::Value &result) { - /* validate count */ - check_param_count(params, 0, result); - result["result"] = "ACK"; return (TREX_RPC_CMD_OK); } @@ -80,9 +73,6 @@ trex_rpc_cmd_rc_e TrexRpcCmdGetReg::_run(const Json::Value ¶ms, Json::Value &result) { vector cmds; - /* validate count */ - check_param_count(params, 0, result); - TrexRpcCommandsTable::get_instance().query(cmds); Json::Value test = Json::arrayValue; -- cgit 1.2.3-korg