From 1e8e304f0107e1c50b18b5d13814cfc1cdba97f6 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Thu, 2 Jun 2022 18:35:22 -0700 Subject: [PATCH] Remove unneeded array --- client/web/lrpc.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/web/lrpc.rb b/client/web/lrpc.rb index 6d4ff40..ac4e78b 100644 --- a/client/web/lrpc.rb +++ b/client/web/lrpc.rb @@ -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