aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/json.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/json.go')
-rw-r--r--rpc/json.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/rpc/json.go b/rpc/json.go
deleted file mode 100644
index e467f9a34..000000000
--- a/rpc/json.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package rpc
-
-import (
- "encoding/json"
- "io"
-)
-
-type jsonWrapper struct{}
-
-func (self jsonWrapper) Send(writer io.Writer, v interface{}) (n int, err error) {
- var payload []byte
- payload, err = json.Marshal(v)
- if err != nil {
- return 0, err
- }
-
- return writer.Write(payload)
-}
-
-var JSON jsonWrapper