Browse Source

remove private call methods

Q: what was the reason to create them?
pull/456/head
Anton Kaliaev 8 years ago
parent
commit
26ccb4c94a
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      client/http_client.go

+ 0
- 8
client/http_client.go View File

@ -67,10 +67,6 @@ func NewClientJSONRPC(remote string) *ClientJSONRPC {
} }
func (c *ClientJSONRPC) Call(method string, params map[string]interface{}, result interface{}) (interface{}, error) { func (c *ClientJSONRPC) Call(method string, params map[string]interface{}, result interface{}) (interface{}, error) {
return c.call(method, params, result)
}
func (c *ClientJSONRPC) call(method string, params map[string]interface{}, result interface{}) (interface{}, error) {
// Make request and get responseBytes // Make request and get responseBytes
request := types.RPCRequest{ request := types.RPCRequest{
JSONRPC: "2.0", JSONRPC: "2.0",
@ -114,10 +110,6 @@ func NewClientURI(remote string) *ClientURI {
} }
func (c *ClientURI) Call(method string, params map[string]interface{}, result interface{}) (interface{}, error) { func (c *ClientURI) Call(method string, params map[string]interface{}, result interface{}) (interface{}, error) {
return c.call(method, params, result)
}
func (c *ClientURI) call(method string, params map[string]interface{}, result interface{}) (interface{}, error) {
values, err := argsToURLValues(params) values, err := argsToURLValues(params)
if err != nil { if err != nil {
return nil, err return nil, err


Loading…
Cancel
Save