Remove unneeded array

This commit is contained in:
Elara 2022-06-02 18:35:22 -07:00
parent acf262b4f0
commit 1e8e304f01

View File

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