From 19939af538025f51039c9f9036bc82540b5ee089 Mon Sep 17 00:00:00 2001 From: Elad Zelingher Date: Thu, 17 May 2018 12:35:43 -0400 Subject: [PATCH] A simple refactor --- .../WAMP2/V2/Fluent/WebSocket4NetActivator.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/net45/Default/WampSharp.WebSocket4Net/WAMP2/V2/Fluent/WebSocket4NetActivator.cs b/src/net45/Default/WampSharp.WebSocket4Net/WAMP2/V2/Fluent/WebSocket4NetActivator.cs index 7c4758bb3..d21f7b736 100644 --- a/src/net45/Default/WampSharp.WebSocket4Net/WAMP2/V2/Fluent/WebSocket4NetActivator.cs +++ b/src/net45/Default/WampSharp.WebSocket4Net/WAMP2/V2/Fluent/WebSocket4NetActivator.cs @@ -69,7 +69,7 @@ protected IControlledWampConnection CreateTextConnection(IWa return new WebSocket4NetTextConnection(ActivateWebSocket(textBinding), textBinding); } - private WebSocket ActivateWebSocket(IWampBinaryBinding binaryBinding) + private WebSocket ActivateWebSocket(IWampBinding binaryBinding) { WebSocket webSocket = mWebSocketFactory(binaryBinding.Name); @@ -80,17 +80,5 @@ private WebSocket ActivateWebSocket(IWampBinaryBinding binar return webSocket; } - - private WebSocket ActivateWebSocket(IWampTextBinding textBinding) - { - WebSocket webSocket = mWebSocketFactory(textBinding.Name); - - if (SecurityOptionsConfigureAction != null) - { - SecurityOptionsConfigureAction(webSocket.Security); - } - - return webSocket; - } } } \ No newline at end of file