aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/personal_args.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/api/personal_args.go')
-rw-r--r--rpc/api/personal_args.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/rpc/api/personal_args.go b/rpc/api/personal_args.go
index 5a584fb0c..89419029b 100644
--- a/rpc/api/personal_args.go
+++ b/rpc/api/personal_args.go
@@ -44,36 +44,6 @@ func (args *NewAccountArgs) UnmarshalJSON(b []byte) (err error) {
return shared.NewInvalidTypeError("passhrase", "not a string")
}
-type DeleteAccountArgs struct {
- Address string
- Passphrase string
-}
-
-func (args *DeleteAccountArgs) UnmarshalJSON(b []byte) (err error) {
- var obj []interface{}
- if err := json.Unmarshal(b, &obj); err != nil {
- return shared.NewDecodeParamError(err.Error())
- }
-
- if len(obj) < 2 {
- return shared.NewInsufficientParamsError(len(obj), 2)
- }
-
- if addr, ok := obj[0].(string); ok {
- args.Address = addr
- } else {
- return shared.NewInvalidTypeError("address", "not a string")
- }
-
- if passhrase, ok := obj[1].(string); ok {
- args.Passphrase = passhrase
- } else {
- return shared.NewInvalidTypeError("passhrase", "not a string")
- }
-
- return nil
-}
-
type UnlockAccountArgs struct {
Address string
Passphrase string