Skip to content

Commit f26e7af

Browse files
committed
Remove useless method
1 parent 2d531ad commit f26e7af

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

lib/jsonrpc/batch_request.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,6 @@ def size
124124
#
125125
alias length size
126126

127-
# Returns true if the batch contains no requests
128-
#
129-
# @api public
130-
#
131-
# @example Check if batch is empty
132-
# batch.empty? # => false
133-
#
134-
# @return [Boolean] true if the batch is empty, false otherwise
135-
#
136-
def empty?
137-
requests.empty?
138-
end
139-
140127
# Handles each request/notification in the batch and returns responses
141128
#
142129
# @api public

spec/jsonrpc/batch_request_spec.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,6 @@
8989
end
9090
end
9191

92-
describe '#empty?' do
93-
context 'when batch is non-empty' do
94-
it 'returns false' do
95-
batch = described_class.new([add_request])
96-
97-
expect(batch.empty?).to be false
98-
end
99-
end
100-
101-
# NOTE: The batch will never be empty due to a validation on initialization
102-
end
103-
10492
describe '#find' do
10593
let(:batch) { described_class.new([add_request, notify_notification, subtract_request]) }
10694

0 commit comments

Comments
 (0)