Dead code removed

This commit is contained in:
Sergey Prokhorov 2019-07-28 23:17:58 +02:00
parent 263b199848
commit 40b1d8da0a
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337
3 changed files with 10 additions and 4 deletions

View file

@ -10,6 +10,14 @@ USER:=mtproto-proxy
all: config/prod-sys.config config/prod-vm.args
$(REBAR3) as prod release
.PHONY: test
test:
$(REBAR3) xref
$(REBAR3) eunit
$(REBAR3) ct
$(REBAR3) proper -n 50
$(REBAR3) dialyzer
config/prod-sys.config: config/sys.config.example
[ -f $@ ] && diff $^ $@ || true
cp -i -b $^ $@

View file

@ -281,9 +281,7 @@ handle_upstream_data(Bin, #state{codec = Codec0} = S0) ->
{ok, S2} ->
{next, S2, S2#state.codec};
{incomplete, S2} ->
{stop, S2, S2#state.codec};
{error, Err} ->
error(Err)
{stop, S2, S2#state.codec}
end
end, S0, Bin, Codec0),
{ok, S#state{codec = Codec}}.

View file

@ -9,7 +9,7 @@
%% Application callbacks
-export([start/2, prep_stop/1, stop/1, config_change/3]).
-export([mtp_listeners/0, running_ports/0, start_proxy/1]).
-export([mtp_listeners/0, running_ports/0, start_proxy/1, build_urls/4]).
-define(APP, mtproto_proxy).