From 679e3bf1c1dcfeefd405d4edaa060b8350c9a4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 26 Sep 2018 14:02:05 +0200 Subject: Remove gun:dbg_send_raw/2 The same can now be achieved using gun:info to retrieve the socket. This function was not documented and was only used in the old Cowboy test suite. --- src/gun.erl | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/gun.erl b/src/gun.erl index bb7ac1d..0095169 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -83,9 +83,6 @@ -export([ws_upgrade/4]). -export([ws_send/2]). -%% Debug. --export([dbg_send_raw/2]). - %% Internals. -export([start_link/4]). -export([proc_lib_hack/5]). @@ -640,13 +637,6 @@ ws_send(ServerPid, Frames) -> _ = ServerPid ! {ws_send, self(), Frames}, ok. -%% Debug. - --spec dbg_send_raw(pid(), iodata()) -> ok. -dbg_send_raw(ServerPid, Data) -> - _ = ServerPid ! {dbg_send_raw, self(), Data}, - ok. - %% Internals. start_link(Owner, Host, Port, Opts) -> @@ -854,9 +844,6 @@ loop(State=#state{parent=Parent, owner=Owner, owner_ref=OwnerRef, {system, From, Request} -> sys:handle_system_msg(Request, From, Parent, ?MODULE, [], {loop, State}); - {dbg_send_raw, Owner, Data} -> - Transport:send(Socket, Data), - loop(State); {ws_upgrade, _, StreamRef, _, _} -> Owner ! {gun_error, self(), StreamRef, {badstate, "Websocket is only supported over HTTP/1.1."}}, -- cgit v1.2.3