Skip to content

Commit

Permalink
Remove unimplemented JSON marshalling for FunctionCall type.
Browse files Browse the repository at this point in the history
  • Loading branch information
MFAshby authored and jackc committed Nov 6, 2021
1 parent 3d9a54f commit 40ecac4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions function_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package pgproto3

import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
)

Expand Down Expand Up @@ -93,12 +92,3 @@ func (src *FunctionCall) Encode(dst []byte) []byte {
pgio.SetInt32(dst[sp:], int32(len(dst[sp:])))
return dst
}

// MarshalJSON implements encoding/json.Marshaler.
func (src FunctionCall) MarshalJSON() ([]byte, error) {
return json.Marshal(struct {
Type string
}{
Type: "FunctionCall",
})
}

0 comments on commit 40ecac4

Please sign in to comment.