From 71774ed2d485ae182cc33460df0753b6bab13667 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Thu, 3 Dec 2020 15:56:55 +0000 Subject: [PATCH] Remove redundant code RawMessage implements Marshaler and Unmarshaler, so these methods are covered by the two sections below --- ql/src/semmle/go/frameworks/stdlib/EncodingJson.qll | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ql/src/semmle/go/frameworks/stdlib/EncodingJson.qll b/ql/src/semmle/go/frameworks/stdlib/EncodingJson.qll index 2d94c7a7f88..d05cc73c25f 100644 --- a/ql/src/semmle/go/frameworks/stdlib/EncodingJson.qll +++ b/ql/src/semmle/go/frameworks/stdlib/EncodingJson.qll @@ -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))