From 37681a4f48c0bc1c364188f4f522dc729f054eec Mon Sep 17 00:00:00 2001 From: nickcruess-soda Date: Thu, 11 Jul 2024 15:18:20 -0500 Subject: [PATCH] chore: remove unused JSONCodec code, correct typo --- pgtype/json.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pgtype/json.go b/pgtype/json.go index e71dcb9bf..c2aa0d3bf 100644 --- a/pgtype/json.go +++ b/pgtype/json.go @@ -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} @@ -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 }