Remove unneeded array

This commit is contained in:
Elara 2022-06-02 18:35:22 -07:00
parent acf262b4f0
commit 1e8e304f01
1 changed files with 0 additions and 2 deletions

View File

@ -100,7 +100,6 @@ class LRPCChannel
# Set self variables # Set self variables
@client = client @client = client
@id = id @id = id
@arr = []
# Set function variables to no-ops # Set function variables to no-ops
@onMessage = proc {|fn|} @onMessage = proc {|fn|}
@onClose = proc {} @onClose = proc {}
@ -113,7 +112,6 @@ class LRPCChannel
# send sends a value on the channel. This should not # send sends a value on the channel. This should not
# be called by the consumer of the channel. # be called by the consumer of the channel.
def send(val) def send(val)
@arr.push(val)
fn = @onMessage fn = @onMessage
fn(val) fn(val)
end end