diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-06-03 16:05:17 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2015-06-03 16:05:17 +0300 |
commit | c1119b1f3945a37f656934ef530f8c7bf158530f (patch) | |
tree | 0097cc1e23dbf9e02aa06e9d5592b3bbe80b5b6d /src/mod_proxy65_stream.erl | |
parent | Move opt_type/1 function out of if-else block (diff) |
Remove unused validation code
Diffstat (limited to '')
-rw-r--r-- | src/mod_proxy65_stream.erl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mod_proxy65_stream.erl b/src/mod_proxy65_stream.erl index 972faa76b..722a782c5 100644 --- a/src/mod_proxy65_stream.erl +++ b/src/mod_proxy65_stream.erl @@ -38,7 +38,7 @@ stream_established/2]). -export([start/2, stop/1, start_link/3, activate/2, - relay/3, socket_type/0, mod_opt_type/1]). + relay/3, socket_type/0]). -include("mod_proxy65.hrl"). @@ -288,15 +288,3 @@ find_maxrate(Shaper, JID1, JID2, Host) -> if MaxRate1 == none; MaxRate2 == none -> none; true -> lists:max([MaxRate1, MaxRate2]) end. - -mod_opt_type(auth_type) -> - fun (plain) -> plain; - (anonymous) -> anonymous - end; -mod_opt_type(recbuf) -> - fun (I) when is_integer(I), I > 0 -> I end; -mod_opt_type(shaper) -> - fun (A) when is_atom(A) -> A end; -mod_opt_type(sndbuf) -> - fun (I) when is_integer(I), I > 0 -> I end; -mod_opt_type(_) -> [auth_type, recbuf, shaper, sndbuf]. |