ConnectionManager#stats is unused

ConnectionManager#stats is unused

From 33c2c654a25238d642cb6f7440833f970e3a3049 Mon Sep 17 00:00:00 2001
From: Ben Langfeld <blangfeld@powerhrg.com>
Date: Tue, 27 Nov 2018 22:42:22 -0200
Subject: [PATCH] ConnectionManager#stats is unused


diff --git a/lib/message_bus/connection_manager.rb b/lib/message_bus/connection_manager.rb
index 44b9dee..276e5e4 100644
--- a/lib/message_bus/connection_manager.rb
+++ b/lib/message_bus/connection_manager.rb
@@ -98,13 +98,4 @@ class MessageBus::ConnectionManager
       @clients.length
     end
   end
-
-  def stats
-    synchronize do
-      {
-        client_count: @clients.length,
-        subscriptions: @subscriptions
-      }
-    end
-  end
 end
diff --git a/spec/lib/message_bus/connection_manager_spec.rb b/spec/lib/message_bus/connection_manager_spec.rb
index 2fb39cf..c9f2323 100644
--- a/spec/lib/message_bus/connection_manager_spec.rb
+++ b/spec/lib/message_bus/connection_manager_spec.rb
@@ -45,10 +45,6 @@ describe MessageBus::ConnectionManager do
     @manager.lookup_client(@client.client_id).must_equal @client
   end
 
-  it "should be subscribed to a channel" do
-    @manager.stats[:subscriptions][10]["test"].length == 1
-  end
-
   it "should not notify clients on incorrect site" do
     m = MessageBus::Message.new(1, 1, "test", "data")
     m.site_id = 9

GitHub