File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ package tlf
7
7
import (
8
8
"encoding"
9
9
"encoding/hex"
10
- "encoding/json"
11
10
"fmt"
12
11
"strings"
13
12
@@ -168,9 +167,6 @@ var _ encoding.BinaryUnmarshaler = (*ID)(nil)
168
167
var _ encoding.TextMarshaler = ID {}
169
168
var _ encoding.TextUnmarshaler = (* ID )(nil )
170
169
171
- var _ json.Marshaler = ID {}
172
- var _ json.Unmarshaler = (* ID )(nil )
173
-
174
170
// NullID is an empty ID
175
171
var NullID = ID {}
176
172
@@ -231,21 +227,6 @@ func (id *ID) UnmarshalText(buf []byte) error {
231
227
return id .UnmarshalBinary (bytes )
232
228
}
233
229
234
- // MarshalJSON implements the json.Marshaler interface for ID.
235
- func (id ID ) MarshalJSON () ([]byte , error ) {
236
- return keybase1 .Quote (id .String ()), nil
237
- }
238
-
239
- // UnmarshalJSON implements the json.Unmarshaler interface for ID.
240
- func (id * ID ) UnmarshalJSON (b []byte ) error {
241
- newID , err := ParseID (keybase1 .Unquote (b ))
242
- if err != nil {
243
- return err
244
- }
245
- * id = newID
246
- return nil
247
- }
248
-
249
230
// SafeType returns the type of TLF represented by this ID. If the ID
250
231
// isn't valid, it returns tlf.Unknown along with an error.
251
232
func (id ID ) SafeType () (Type , error ) {
You can’t perform that action at this time.
0 commit comments