From 03dc760ca07682a61ed547c11a1c650a324a1b14 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 5 Mar 2015 21:48:03 -0600 Subject: Tidy --- rpc/args.go | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'rpc/args.go') diff --git a/rpc/args.go b/rpc/args.go index 3284a232a..f56051242 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -5,7 +5,6 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/ethutil" ) @@ -346,32 +345,6 @@ func (args *FilterOptions) UnmarshalJSON(b []byte) (err error) { return nil } -func toFilterOptions(options *FilterOptions) core.FilterOptions { - var opts core.FilterOptions - - // Convert optional address slice/string to byte slice - if str, ok := options.Address.(string); ok { - opts.Address = [][]byte{fromHex(str)} - } else if slice, ok := options.Address.([]interface{}); ok { - bslice := make([][]byte, len(slice)) - for i, addr := range slice { - if saddr, ok := addr.(string); ok { - bslice[i] = fromHex(saddr) - } - } - opts.Address = bslice - } - - opts.Earliest = options.Earliest - opts.Latest = options.Latest - opts.Topics = make([][]byte, len(options.Topic)) - for i, topic := range options.Topic { - opts.Topics[i] = fromHex(topic) - } - - return opts -} - // type FilterChangedArgs struct { // n int // } @@ -530,7 +503,6 @@ type WhisperFilterArgs struct { To string From string Topics []string - Fn func() } func (args *WhisperFilterArgs) UnmarshalJSON(b []byte) (err error) { -- cgit