Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Truffle] Remove Rubinius classes that we're not using yet.
  • Loading branch information
chrisseaton committed Dec 22, 2014
1 parent d11629d commit 8051985
Show file tree
Hide file tree
Showing 12 changed files with 10 additions and 887 deletions.
20 changes: 0 additions & 20 deletions core/src/main/java/org/jruby/truffle/nodes/RubyNode.java
Expand Up @@ -24,8 +24,6 @@
import org.jruby.truffle.runtime.core.RubyRange;
import org.jruby.truffle.runtime.core.RubyBasicObject;
import org.jruby.truffle.runtime.hash.HashSearchResult;
import org.jruby.truffle.runtime.rubinius.RubiniusByteArray;
import org.jruby.truffle.runtime.rubinius.RubiniusChannel;

import java.math.BigInteger;

Expand Down Expand Up @@ -179,14 +177,6 @@ public UndefinedPlaceholder executeUndefinedPlaceholder(VirtualFrame frame) thro
return RubyTypesGen.RUBYTYPES.expectUndefinedPlaceholder(execute(frame));
}

public RubiniusByteArray executeRubiniusByteArray(VirtualFrame frame) throws UnexpectedResultException {
return RubyTypesGen.RUBYTYPES.expectRubiniusByteArray(execute(frame));
}

public RubiniusChannel executeRubiniusChannel(VirtualFrame frame) throws UnexpectedResultException {
return RubyTypesGen.RUBYTYPES.expectRubiniusChannel(execute(frame));
}

public RubyEncodingConverter executeRubyEncodingConverter(VirtualFrame frame) throws UnexpectedResultException {
return RubyTypesGen.RUBYTYPES.expectRubyEncodingConverter(execute(frame));
}
Expand Down Expand Up @@ -383,16 +373,6 @@ public boolean isRubyTime(Object value) {
return value instanceof RubyTime;
}

@SuppressWarnings("static-method")
public boolean isRubiniusChannel(Object value) {
return value instanceof RubiniusChannel;
}

@SuppressWarnings("static-method")
public boolean isRubiniusByteArray(Object value) {
return value instanceof RubiniusByteArray;
}

@SuppressWarnings("static-method")
public boolean isRubyEncodingConverter(Object value) {
return value instanceof RubyEncodingConverter;
Expand Down
5 changes: 0 additions & 5 deletions core/src/main/java/org/jruby/truffle/nodes/RubyTypes.java
Expand Up @@ -17,9 +17,6 @@
import org.jruby.truffle.runtime.core.RubyHash;
import org.jruby.truffle.runtime.core.RubyRange;
import org.jruby.truffle.runtime.core.RubyBasicObject;
import org.jruby.truffle.runtime.hash.HashSearchResult;
import org.jruby.truffle.runtime.rubinius.RubiniusByteArray;
import org.jruby.truffle.runtime.rubinius.RubiniusChannel;
import org.jruby.truffle.runtime.LexicalScope;

/**
Expand Down Expand Up @@ -57,8 +54,6 @@
RubySymbol.class, //
RubyThread.class, //
RubyTime.class, //
RubiniusChannel.class, //
RubiniusByteArray.class, //
RubyEncodingConverter.class, //
RubyBasicObject.class, //
Object[].class})
Expand Down
17 changes: 0 additions & 17 deletions core/src/main/java/org/jruby/truffle/nodes/core/StringNodes.java
Expand Up @@ -25,7 +25,6 @@
import org.jruby.truffle.runtime.UndefinedPlaceholder;
import org.jruby.truffle.runtime.core.RubyArray;
import org.jruby.truffle.runtime.core.RubyRange;
import org.jruby.truffle.runtime.rubinius.RubiniusByteArray;
import org.jruby.util.ByteList;
import org.jruby.util.Pack;

Expand Down Expand Up @@ -1159,20 +1158,4 @@ public RubyArray unpack(RubyString string, RubyString format) {

}

// Rubinius API
@CoreMethod(names = "data")
public abstract static class DataNode extends CoreMethodNode {
public DataNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

public DataNode(DataNode prev) {
super(prev);
}

@Specialization
public RubyBasicObject data(RubyString string) {
return new RubiniusByteArray(getContext().getCoreLibrary().getRubiniusLibrary().getByteArrayCLass(), string.getBytes().getUnsafeBytes());
}
}
}

This file was deleted.

0 comments on commit 8051985

Please sign in to comment.