Skip to content

Commit aa0cb13

Browse files
committed
Tidy up
1 parent 9d751ef commit aa0cb13

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/main/java/org/truffleruby/core/rope/RopeNodes.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.truffleruby.core.rope.RopeNodesFactory.SetByteNodeGen;
3636
import org.truffleruby.core.string.StringAttributes;
3737
import org.truffleruby.core.string.StringSupport;
38-
import org.truffleruby.core.string.StringUtils;
3938
import org.truffleruby.language.NotProvided;
4039
import org.truffleruby.language.RubyBaseNode;
4140
import org.truffleruby.language.RubyContextNode;
@@ -745,7 +744,7 @@ protected Object debugPrintLeafRope(LeafRope rope, int currentLevel, boolean pri
745744
// Converting a rope to a java.lang.String may populate the byte[], so we need to query for the array status beforehand.
746745
final boolean bytesAreNull = rope.getRawBytes() == null;
747746

748-
System.err.println(StringUtils.format(
747+
System.err.println(String.format(
749748
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; E: %s)",
750749
printString ? RopeOperations.escape(rope) : "<skipped>",
751750
rope.getClass().getSimpleName(),
@@ -766,7 +765,7 @@ protected Object debugPrintSubstringRope(SubstringRope rope, int currentLevel, b
766765
// Converting a rope to a java.lang.String may populate the byte[], so we need to query for the array status beforehand.
767766
final boolean bytesAreNull = rope.getRawBytes() == null;
768767

769-
System.err.println(StringUtils.format(
768+
System.err.println(String.format(
770769
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; O: %d; E: %s)",
771770
printString ? RopeOperations.escape(rope) : "<skipped>",
772771
rope.getClass().getSimpleName(),
@@ -793,7 +792,7 @@ protected Object debugPrintConcatRopeBytes(ConcatRope rope, int currentLevel, bo
793792
final boolean bytesAreNull = rope.getRawBytes() == null;
794793

795794
if (state.isFlattened()) {
796-
System.err.println(StringUtils.format(
795+
System.err.println(String.format(
797796
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; E: %s)",
798797
printString ? RopeOperations.escape(rope) : "<skipped>",
799798
rope.getClass().getSimpleName(),
@@ -803,7 +802,7 @@ protected Object debugPrintConcatRopeBytes(ConcatRope rope, int currentLevel, bo
803802
rope.getCodeRange(),
804803
rope.getEncoding()));
805804
} else {
806-
System.err.println(StringUtils.format(
805+
System.err.println(String.format(
807806
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; E: %s)",
808807
printString ? RopeOperations.escape(rope) : "<skipped>",
809808
rope.getClass().getSimpleName(),
@@ -828,7 +827,7 @@ protected Object debugPrintRepeatingRope(RepeatingRope rope, int currentLevel, b
828827
// Converting a rope to a java.lang.String may populate the byte[], so we need to query for the array status beforehand.
829828
final boolean bytesAreNull = rope.getRawBytes() == null;
830829

831-
System.err.println(StringUtils.format(
830+
System.err.println(String.format(
832831
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; T: %d; D: %d; E: %s)",
833832
printString ? RopeOperations.escape(rope) : "<skipped>",
834833
rope.getClass().getSimpleName(),
@@ -852,7 +851,7 @@ protected Object debugPrintLazyInt(LazyIntRope rope, int currentLevel, boolean p
852851
// Converting a rope to a java.lang.String may populate the byte[], so we need to query for the array status beforehand.
853852
final boolean bytesAreNull = rope.getRawBytes() == null;
854853

855-
System.err.println(StringUtils.format(
854+
System.err.println(String.format(
856855
"%s (%s; BN: %b; BL: %d; CL: %d; CR: %s; V: %d, D: %d; E: %s)",
857856
printString ? RopeOperations.escape(rope) : "<skipped>",
858857
rope.getClass().getSimpleName(),

src/main/java/org/truffleruby/core/string/StringNodes.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4936,7 +4936,6 @@ protected Object splicePrepend(
49364936
@Cached RopeNodes.SubstringNode prependSubstringNode,
49374937
@Cached RopeNodes.ConcatNode prependConcatNode,
49384938
@CachedLibrary(limit = "2") RubyStringLibrary libOther) {
4939-
49404939
final Encoding encoding = rubyEncoding.encoding;
49414940
final Rope original = string.rope;
49424941
final Rope left = libOther.getRope(other);
@@ -4972,7 +4971,6 @@ protected RubyString splice(
49724971
@Cached RopeNodes.ConcatNode leftConcatNode,
49734972
@Cached RopeNodes.ConcatNode rightConcatNode,
49744973
@CachedLibrary(limit = "2") RubyStringLibrary libOther) {
4975-
49764974
final Encoding encoding = rubyEncoding.encoding;
49774975
final Rope source = string.rope;
49784976
final Rope insert = libOther.getRope(other);

0 commit comments

Comments
 (0)