Skip to content

Commit

Permalink
chore: remove unused JSONCodec code, correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcruess-soda committed Jul 11, 2024
1 parent c7b9dc0 commit 37681a4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pgtype/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *JSONCodec) PlanEncode(m *Map, oid uint32, format int16, value any) Enco
//
// https://github.com/jackc/pgx/issues/1430
//
// Check for driver.Valuer must come before json.Marshaler so that it is guaranteed to beused
// Check for driver.Valuer must come before json.Marshaler so that it is guaranteed to be used
// when both are implemented https://github.com/jackc/pgx/issues/1805
case driver.Valuer:
return &encodePlanDriverValuer{m: m, oid: oid, formatCode: format}
Expand Down Expand Up @@ -177,13 +177,6 @@ func (scanPlanJSONToByteSlice) Scan(src []byte, dst any) error {
return nil
}

type scanPlanJSONToBytesScanner struct{}

func (scanPlanJSONToBytesScanner) Scan(src []byte, dst any) error {
scanner := (dst).(BytesScanner)
return scanner.ScanBytes(src)
}

type scanPlanJSONToJSONUnmarshal struct {
unmarshal func(data []byte, v any) error
}
Expand Down

0 comments on commit 37681a4

Please sign in to comment.