Remove redundant code

RawMessage implements Marshaler and Unmarshaler, so these methods are
covered by the two sections below
This commit is contained in:
Owen Mansel-Chan
2020-12-03 15:56:55 +00:00
parent 57ee3a8a64
commit 71774ed2d4

View File

@@ -101,14 +101,6 @@ module EncodingJson {
hasQualifiedName("encoding/json", "Encoder", "SetIndent") and
(inp.isParameter(_) and outp.isReceiver())
or
// signature: func (RawMessage).MarshalJSON() ([]byte, error)
hasQualifiedName("encoding/json", "RawMessage", "MarshalJSON") and
(inp.isReceiver() and outp.isResult(0))
or
// signature: func (*RawMessage).UnmarshalJSON(data []byte) error
hasQualifiedName("encoding/json", "RawMessage", "UnmarshalJSON") and
(inp.isParameter(0) and outp.isReceiver())
or
// signature: func (Marshaler).MarshalJSON() ([]byte, error)
implements("encoding/json", "Marshaler", "MarshalJSON") and
(inp.isReceiver() and outp.isResult(0))