Skip to content

Commit 8bfaa93

Browse files
committed
Revert "[Truffle] - Adds Random class"
This reverts commit 245279f. We're going to use the Rubinius implementation, so no need for all of this boilerplate code.
1 parent 061fae7 commit 8bfaa93

File tree

5 files changed

+2
-28
lines changed

5 files changed

+2
-28
lines changed

spec/truffle/tags/core/random/new_tags.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
fails:Random.new returns a new instance of Random
12
fails:Random.new uses a random seed value if none is supplied
23
fails:Random.new returns Random instances initialized with different seeds
34
fails:Random.new accepts an Integer seed value as an argument

truffle/src/main/java/org/jruby/truffle/nodes/RubyTypes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
RubyEncoding.class, //
5454
RubySymbol.class, //
5555
RubyThread.class, //
56-
RubyTime.class,
57-
RubyRandom.class, //
56+
RubyTime.class, //
5857
RubyEncodingConverter.class, //
5958
RubyMethod.class, //
6059
RubyUnboundMethod.class, //

truffle/src/main/java/org/jruby/truffle/nodes/core/RandomNodes.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

truffle/src/main/java/org/jruby/truffle/runtime/core/CoreLibrary.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public class CoreLibrary {
9898
private final RubyClass securityErrorClass;
9999
private final RubyClass standardErrorClass;
100100
private final RubyClass stringClass;
101-
private final RubyClass randomClass;
102101
private final RubyClass stringDataClass;
103102
private final RubyClass symbolClass;
104103
private final RubyClass syntaxErrorClass;
@@ -285,7 +284,6 @@ public CoreLibrary(RubyContext context) {
285284
rangeClass = defineClass("Range", new RubyRange.RangeAllocator());
286285
regexpClass = defineClass("Regexp", new RubyRegexp.RegexpAllocator());
287286
stringClass = defineClass("String", new RubyString.StringAllocator());
288-
randomClass = defineClass("Random");
289287
symbolClass = defineClass("Symbol");
290288
threadClass = defineClass("Thread", new RubyThread.ThreadAllocator());
291289
timeClass = defineClass("Time", new RubyTime.TimeAllocator());

truffle/src/main/java/org/jruby/truffle/runtime/core/RubyRandom.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)