diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-13 23:37:08 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-01-13 23:37:08 +0800 |
commit | a81d835e4d27f600fac31f74d938d0b6502c3072 (patch) | |
tree | 1b7a4a4e5f6da29e03f248acef8679847c00ed9b /rpc/message.go | |
parent | 961e4da7d885a6d5d00fc7c3ab2e11c80c9eeecc (diff) | |
download | go-tangerine-a81d835e4d27f600fac31f74d938d0b6502c3072.tar.gz go-tangerine-a81d835e4d27f600fac31f74d938d0b6502c3072.tar.zst go-tangerine-a81d835e4d27f600fac31f74d938d0b6502c3072.zip |
cleanup
Diffstat (limited to 'rpc/message.go')
-rw-r--r-- | rpc/message.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/rpc/message.go b/rpc/message.go index 91fbde99b..63de734b8 100644 --- a/rpc/message.go +++ b/rpc/message.go @@ -162,18 +162,6 @@ func (req *RpcRequest) ToGetCodeAtArgs() (*GetCodeAtArgs, error) { return args, nil } -// func NewSuccessRes(object JsonResponse) string { -// e := SuccessRes{Error: false, Result: object} -// res, err := json.Marshal(e) -// if err != nil { -// // This should never happen -// panic("Creating json error response failed, help") -// } -// success := string(res) -// return success -// // return res -// } - func NewErrorResponse(msg string) error { return errors.New(msg) } |