Commit 84b19971 authored by Taylor Gerring's avatar Taylor Gerring

inline UninstallFilter

parent 4663a55f
...@@ -98,12 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State { ...@@ -98,12 +98,6 @@ func (self *EthereumApi) getStateWithNum(num int64) *xeth.State {
// return nil // return nil
// } // }
func (self *EthereumApi) UninstallFilter(id int, reply *interface{}) error {
*reply = self.xeth().UninstallFilter(id)
return nil
}
func (self *EthereumApi) NewFilterString(args *FilterStringArgs, reply *interface{}) error { func (self *EthereumApi) NewFilterString(args *FilterStringArgs, reply *interface{}) error {
if err := args.requirements(); err != nil { if err := args.requirements(); err != nil {
return err return err
...@@ -498,7 +492,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error ...@@ -498,7 +492,7 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
if err := json.Unmarshal(req.Params, &args); err != nil { if err := json.Unmarshal(req.Params, &args); err != nil {
return err return err
} }
return p.UninstallFilter(args.Id, reply) *reply = p.xeth().UninstallFilter(args.Id)
case "eth_getFilterChanges": case "eth_getFilterChanges":
args := new(FilterIdArgs) args := new(FilterIdArgs)
if err := json.Unmarshal(req.Params, &args); err != nil { if err := json.Unmarshal(req.Params, &args); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment