Dead code removed

parent 263b1998
......@@ -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 $^ $@
......
......@@ -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}}.
......
......@@ -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).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment