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 end
1173811738 return "sp_str_sub_range(" + rc + ", " + compile_arg0(nid) + ", 1)"
1173911739 end
11740- if mname == "ljust"
11741- args_id = @nd_arguments[nid]
11742- if args_id >= 0
11743- a = get_args(args_id)
11744- if a.length >= 2
11745- return "sp_str_ljust2(" + rc + ", " + compile_expr(a[0]) + ", " + compile_expr(a[1]) + ")"
11746- end
11747- end
11748- return "sp_str_ljust(" + rc + ", " + compile_arg0(nid) + ")"
11749- end
11750- if mname == "rjust"
11751- args_id = @nd_arguments[nid]
11752- if args_id >= 0
11753- a = get_args(args_id)
11754- if a.length >= 2
11755- return "sp_str_rjust2(" + rc + ", " + compile_expr(a[0]) + ", " + compile_expr(a[1]) + ")"
11756- end
11757- end
11758- return "sp_str_rjust(" + rc + ", " + compile_arg0(nid) + ")"
11759- end
1176011740 if mname == "center"
1176111741 return "sp_str_center(" + rc + ", " + compile_arg0(nid) + ")"
1176211742 end