diff --git a/ql/src/semmle/go/Types.qll b/ql/src/semmle/go/Types.qll index d2b734e0785..c486b6e440a 100644 --- a/ql/src/semmle/go/Types.qll +++ b/ql/src/semmle/go/Types.qll @@ -584,12 +584,6 @@ class SendRecvChanType extends @sendrcvchantype, ChanType { /** A named type. */ class NamedType extends @namedtype, CompositeType { - /** Gets a method with name `m` defined on this type or its pointer type. */ - MethodDecl getMethodDecl(string m) { - result.getName() = m and - this = result.getReceiverBaseType() - } - /** Gets the type which this type is defined to be. */ Type getBaseType() { underlying_type(this, result) } diff --git a/ql/test/library-tests/semmle/go/Types/MethodDecls.expected b/ql/test/library-tests/semmle/go/Types/MethodDecls.expected deleted file mode 100644 index f6d514fc52a..00000000000 --- a/ql/test/library-tests/semmle/go/Types/MethodDecls.expected +++ /dev/null @@ -1,4 +0,0 @@ -| Foo | half | pkg1/tst.go:33:1:35:1 | function declaration | -| base | f | pkg1/embedding.go:10:1:12:1 | function declaration | -| base | g | pkg1/embedding.go:14:1:16:1 | function declaration | -| embedder3 | f | pkg1/embedding.go:30:1:32:1 | function declaration | diff --git a/ql/test/library-tests/semmle/go/Types/MethodDecls.ql b/ql/test/library-tests/semmle/go/Types/MethodDecls.ql deleted file mode 100644 index c0fb55f3b19..00000000000 --- a/ql/test/library-tests/semmle/go/Types/MethodDecls.ql +++ /dev/null @@ -1,4 +0,0 @@ -import go - -from NamedType t, string m -select t, m, t.getMethodDecl(m)