summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJemma Issroff <[email protected]>2023-09-19 15:40:59 -0400
committerGitHub <[email protected]>2023-09-19 15:40:59 -0400
commit7d306d55ce4335cc54716367010c0e9db563ec28 (patch)
tree8951423bf813a7bcdd598cd53681c579e21bae9d
parent3e4ccd6ddc4abbd3f08c628c4e56d54ef00c5bfa (diff)
[YARP] Minor linting [ci skip] (#8480)
-rw-r--r--test_code.rb1
-rw-r--r--yarp/yarp_compiler.c6
2 files changed, 0 insertions, 7 deletions
diff --git a/test_code.rb b/test_code.rb
deleted file mode 100644
index f599e28b8a..0000000000
--- a/test_code.rb
+++ /dev/null
@@ -1 +0,0 @@
-10
diff --git a/yarp/yarp_compiler.c b/yarp/yarp_compiler.c
index 22aecdaa4a..51c769d30d 100644
--- a/yarp/yarp_compiler.c
+++ b/yarp/yarp_compiler.c
@@ -492,7 +492,6 @@ yp_new_child_iseq(rb_iseq_t *iseq, yp_scope_node_t * node, yp_parser_t *parser,
return ret_iseq;
}
-
static int
yp_compile_class_path(LINK_ANCHOR *const ret, rb_iseq_t *iseq, const yp_node_t *constant_path_node, const NODE *line_node, const uint8_t * src, bool popped, yp_compile_context_t *compile_context)
{
@@ -941,7 +940,6 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
int flags = VM_CALL_ARGS_SIMPLE;
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, method_id, INT2NUM(1), INT2FIX(flags));
-
if (!popped) {
ADD_INSN(ret, &dummy_line_node, dup);
}
@@ -1149,7 +1147,6 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
int flags = VM_CALL_ARGS_SIMPLE;
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, method_id, INT2NUM(1), INT2FIX(flags));
-
if (!popped) {
ADD_INSN(ret, &dummy_line_node, dup);
}
@@ -1338,7 +1335,6 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
instance_variable_name_val,
get_ivar_ic_value(iseq, instance_variable_name_id));
-
if (!popped) {
ADD_INSN(ret, &dummy_line_node, dup);
}
@@ -1445,7 +1441,6 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
ADD_INSN1(ret, &dummy_line_node, concatstrings, INT2FIX((int)(parts_size)));
}
-
ADD_SEND_WITH_FLAG(ret, &dummy_line_node, rb_intern("`"), INT2NUM(1), INT2FIX(VM_CALL_FCALL | VM_CALL_ARGS_SIMPLE));
if (popped) {
ADD_INSN(ret, &dummy_line_node, pop);
@@ -1807,7 +1802,6 @@ yp_compile_node(rb_iseq_t *iseq, const yp_node_t *node, LINK_ANCHOR *const ret,
yp_node_list_t requireds_list = YP_EMPTY_NODE_LIST;
yp_node_list_t optionals_list = YP_EMPTY_NODE_LIST;
-
if (parameters_node) {
requireds_list = parameters_node->requireds;
optionals_list = parameters_node->optionals;