From 68c6b5a0e5d50b74cc9023903143b0dd70040bba Mon Sep 17 00:00:00 2001 From: David Baker Effendi Date: Fri, 8 Nov 2024 11:38:59 +0200 Subject: [PATCH] Remove printarg --- .../io/joern/rubysrc2cpg/parser/RubyJsonToNodeCreator.scala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/joern-cli/frontends/rubysrc2cpg/src/main/scala/io/joern/rubysrc2cpg/parser/RubyJsonToNodeCreator.scala b/joern-cli/frontends/rubysrc2cpg/src/main/scala/io/joern/rubysrc2cpg/parser/RubyJsonToNodeCreator.scala index 93e7f6677cef..50a8ab16482f 100644 --- a/joern-cli/frontends/rubysrc2cpg/src/main/scala/io/joern/rubysrc2cpg/parser/RubyJsonToNodeCreator.scala +++ b/joern-cli/frontends/rubysrc2cpg/src/main/scala/io/joern/rubysrc2cpg/parser/RubyJsonToNodeCreator.scala @@ -478,10 +478,7 @@ class RubyJsonToNodeCreator( ForExpression(forVariable, iterableVariable, doBlock)(obj.toTextSpan) } - private def visitForwardArg(obj: Obj): RubyExpression = { - println("forward args") - defaultResult(Option(obj.toTextSpan)) - } + private def visitForwardArg(obj: Obj): RubyExpression = defaultResult(Option(obj.toTextSpan)) // Note: Forward args should probably be handled more explicitly, but this should preserve flows if the same // identifier is used in latter forwarding