Remove unneeded array
This commit is contained in:
parent
acf262b4f0
commit
1e8e304f01
@ -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
|
||||||
|
Reference in New Issue
Block a user