Skip to content

Commit 95ff802

Browse files
committed
[GR-17457] Remove SizedQueue#closed?
PullRequest: truffleruby/2356
2 parents b46b9b7 + d2a8cc2 commit 95ff802

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

spec/tags/truffle/methods_tags.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ fails:Public methods on UnboundMethod should include clone
7272
fails:Public methods on UnboundMethod should include original_name
7373
fails:Public methods on Regexp should not include match_from
7474
fails:Public methods on Regexp should not include option_to_string
75-
fails:Public methods on SizedQueue should not include closed?
7675
fails:Public methods on Struct should include filter
7776
fails:Public methods on Symbol should not include eql?
7877
fails:Public methods on Symbol should not include hash
@@ -88,18 +87,9 @@ fails:Public methods on Digest::Base should include digest_length
8887
fails:Public methods on Digest::Base should include reset
8988
fails:Public methods on Digest::MD5 should not include block_length
9089
fails:Public methods on Digest::SHA1 should not include block_length
91-
fails:Public methods on Array should include deconstruct
92-
fails:Public methods on Complex should include <=>
9390
fails:Public methods on ENV.singleton_class should include freeze
94-
fails:Public methods on Enumerable should include filter_map
95-
fails:Public methods on Enumerable should include tally
96-
fails:Public methods on Enumerator::Lazy should include eager
9791
fails:Public methods on Enumerator::Lazy should include filter_map
9892
fails:Public methods on Enumerator::Lazy should include with_index
9993
fails:Public methods on Fiber should include raise
100-
fails:Public methods on Hash should include deconstruct_keys
10194
fails:Public methods on IO should include set_encoding_by_bom
10295
fails:Public methods on Module should include const_source_location
103-
fails:Public methods on Range should include count
104-
fails:Public methods on Struct should include deconstruct
105-
fails:Public methods on Struct should include deconstruct_keys

src/main/java/org/truffleruby/core/queue/QueueNodes.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ protected boolean closed(RubyQueue self) {
226226
return self.queue.isClosed();
227227
}
228228

229+
@Specialization
230+
protected boolean closed(RubySizedQueue self) {
231+
return self.queue.isClosed();
232+
}
233+
229234
}
230235

231236
}

src/main/java/org/truffleruby/core/queue/SizedQueueNodes.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,4 @@ protected RubySizedQueue close(RubySizedQueue self) {
254254

255255
}
256256

257-
@CoreMethod(names = "closed?")
258-
public abstract static class ClosedNode extends CoreMethodArrayArgumentsNode {
259-
260-
@Specialization
261-
protected boolean closed(RubySizedQueue self) {
262-
return self.queue.isClosed();
263-
}
264-
265-
}
266-
267257
}

0 commit comments

Comments
 (0)