Skip to content

Commit 087c39d

Browse files
committed
Remove some dead code
1 parent e1ee36f commit 087c39d

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

src/main/java/org/truffleruby/cext/CExtNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ protected Object debug(Object... objects) {
14481448
builder.append(String.format("%02x", bytes[i]));
14491449
}
14501450

1451-
representation = tstring.toString() + " (" + builder.toString() + ")";
1451+
representation = tstring + " (" + builder + ")";
14521452
} else if (RubyGuards.isRubyValue(object)) {
14531453
representation = object.toString() + " (" + RubyGuards.getJavaString(callToS(object)) + ")";
14541454
} else {

src/main/java/org/truffleruby/language/control/WhileNode.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ public WhileNode(RepeatingNode repeatingNode) {
3131
loopNode = Truffle.getRuntime().createLoopNode(repeatingNode);
3232
}
3333

34-
private WhileNode(LoopNode loopNode) {
35-
this.loopNode = loopNode;
36-
}
37-
3834
@Override
3935
public Object execute(VirtualFrame frame) {
4036
loopNode.execute(frame);

src/main/java/org/truffleruby/language/methods/SharedMethodInfo.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,6 @@ public SharedMethodInfo convertMethodMissingToMethod(RubyModule declaringModule,
9494
ArgumentDescriptor.ANY);
9595
}
9696

97-
public SharedMethodInfo withArity(Arity newArity) {
98-
return new SharedMethodInfo(
99-
sourceSection,
100-
staticLexicalScope,
101-
newArity,
102-
originalName,
103-
blockDepth,
104-
parseName,
105-
notes,
106-
argumentDescriptors);
107-
}
108-
10997
public SourceSection getSourceSection() {
11098
return sourceSection;
11199
}

0 commit comments

Comments
 (0)