Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed May 12, 2024
1 parent c5fdecb commit 2e2368b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions protocol/chainlib/chainproxy/rpcclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,22 +536,6 @@ func (c *Client) newMessageArrayWithID(method string, id json.RawMessage, params
return msg, nil
}

// func (c *Client) newMessageWithString(method string, id json.RawMessage, paramsIn string) (*JsonrpcMessage, error) {
// var msg *JsonrpcMessage
// if id == nil {
// msg = &JsonrpcMessage{Version: Vsn, ID: c.nextID(), Method: method}
// } else {
// msg = &JsonrpcMessage{Version: Vsn, ID: id, Method: method}
// }
// if paramsIn != "" { // prevent sending "params":null
// var err error
// if msg.Params, err = json.Marshal(paramsIn); err != nil {
// return nil, err
// }
// }
// return msg, nil
// }

func (c *Client) newMessageArray(method string, paramsIn ...interface{}) (*JsonrpcMessage, error) {
msg := &JsonrpcMessage{Version: Vsn, ID: c.nextID(), Method: method}
if paramsIn != nil { // prevent sending "params":null
Expand Down

0 comments on commit 2e2368b

Please sign in to comment.