Commit 87a781cf
87a781cf3486Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 7 months ago · 1 file · ~1 modified
Description
fix: remove duplicate ljust/rjust handlers
Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]
Details
- Commit
- 87a781cf3486
- Parent
- 5bb882a022c2
spinel_codegen.rbmodifiedView file
@@ -11737,26 +11737,6 @@
1173711737
end1173811738
return "sp_str_sub_range(" + rc + ", " + compile_arg0(nid) + ", 1)"1173911739
end11740-
if mname == "ljust"11741-
args_id = @nd_arguments[nid]11742-
if args_id >= 011743-
a = get_args(args_id)11744-
if a.length >= 211745-
return "sp_str_ljust2(" + rc + ", " + compile_expr(a[0]) + ", " + compile_expr(a[1]) + ")"11746-
end11747-
end11748-
return "sp_str_ljust(" + rc + ", " + compile_arg0(nid) + ")"11749-
end11750-
if mname == "rjust"11751-
args_id = @nd_arguments[nid]11752-
if args_id >= 011753-
a = get_args(args_id)11754-
if a.length >= 211755-
return "sp_str_rjust2(" + rc + ", " + compile_expr(a[0]) + ", " + compile_expr(a[1]) + ")"11756-
end11757-
end11758-
return "sp_str_rjust(" + rc + ", " + compile_arg0(nid) + ")"11759-
end1176011740
if mname == "center"1176111741
return "sp_str_center(" + rc + ", " + compile_arg0(nid) + ")"1176211742
end