Skip to content

Commit

Permalink
Delete some deprecated declarations (tailscale#18)
Browse files Browse the repository at this point in the history
These are not referenced anywhere whether in our own source code
or in any publicly available source code.

The other deprecated declarations will also be deleted once
known usages have been cleaned up.

The hujson package has no compatibility guarantees,
so deletion is permissible.
  • Loading branch information
dsnet committed Apr 26, 2022
1 parent 67d83cd commit e440eb7
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,11 @@
package hujson

import (
"bytes"
"io"

json "github.com/tailscale/hujson/internal/hujson"
)

// Deprecated: Do not use. This will be deleted in the near future.
func Compact(dst *bytes.Buffer, src []byte) error {
return json.Compact(dst, src)
}

// Deprecated: Do not use. This will be deleted in the near future.
func HTMLEscape(dst *bytes.Buffer, src []byte) {
json.HTMLEscape(dst, src)
}

// Deprecated: Do not use. This will be deleted in the near future.
func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error {
return json.Indent(dst, src, prefix, indent)
}

// Deprecated: Do not use. This will be deleted in the near future.
func Marshal(v interface{}) ([]byte, error) {
return json.Marshal(v)
Expand Down Expand Up @@ -59,56 +43,9 @@ func Unmarshal(data []byte, v interface{}) error {
return json.Unmarshal(data, v)
}

// Deprecated: Do not use. This will be deleted in the near future.
func Valid(data []byte) bool {
return json.Valid(data)
}

// Deprecated: Do not use. This will be deleted in the near future.
// See the "Use with the Standard Library" section for alternatives.
type Decoder = json.Decoder

// Deprecated: Do not use. This will be deleted in the near future.
type Delim = json.Delim

// Deprecated: Do not use. This will be deleted in the near future.
type Encoder = json.Encoder

// Deprecated: Do not use. This will be deleted in the near future.
type InvalidUnmarshalError = json.InvalidUnmarshalError

// Deprecated: Do not use. This will be deleted in the near future.
type InvalidUTF8Error = json.InvalidUTF8Error

// Deprecated: Do not use. This will be deleted in the near future.
type Marshaler = json.Marshaler

// Deprecated: Do not use. This will be deleted in the near future.
type MarshalerError = json.MarshalerError

// Deprecated: Do not use. This will be deleted in the near future.
type Number = json.Number

// Deprecated: Do not use. This will be deleted in the near future.
type RawMessage = json.RawMessage

// Deprecated: Do not use. This will be deleted in the near future.
type SyntaxError = json.SyntaxError

// Deprecated: Do not use. This will be deleted in the near future.
type Token = json.Token

// Deprecated: Do not use. This will be deleted in the near future.
type Unmarshaler = json.Unmarshaler

// Deprecated: Do not use. This will be deleted in the near future.
type UnmarshalFieldError = json.UnmarshalFieldError

// Deprecated: Do not use. This will be deleted in the near future.
type UnmarshalTypeError = json.UnmarshalTypeError

// Deprecated: Do not use. This will be deleted in the near future.
type UnsupportedTypeError = json.UnsupportedTypeError

// Deprecated: Do not use. This will be deleted in the near future.
type UnsupportedValueError = json.UnsupportedValueError

0 comments on commit e440eb7

Please sign in to comment.