diff --git a/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll b/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll index 9d2eedb36d7..3fb4058aa7e 100644 --- a/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll +++ b/ql/src/codeql_ruby/controlflow/ControlFlowGraph.qll @@ -8,8 +8,7 @@ private import internal.Splitting private import internal.Completion private class CfgScopeRange = - @program or @begin_block or @end_block or @module or @class or @singleton_class or @method or - @singleton_method or @block or @do_block; + @program or @begin_block or @end_block or @method or @singleton_method or @block or @do_block; /** An AST node with an associated control-flow graph. */ class CfgScope extends AstNode, CfgScopeRange { @@ -24,13 +23,6 @@ class CfgScope extends AstNode, CfgScopeRange { this instanceof EndBlock and result = "END block" or - result = this.(Module).getName().toString() - or - result = this.(Class).getName().toString() - or - this instanceof SingletonClass and - result = "singleton class" - or result = this.(Method).getName().toString() or result = this.(SingletonMethod).getName().toString()