diff options
author | Anders Svensson <[email protected]> | 2014-01-23 18:50:08 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2014-01-27 16:58:08 +0100 |
commit | 11d657f6df177bf14d4d7eac5c46332ef7a9b1c2 (patch) | |
tree | 3275cdb694e13b96f3cd5e31a181d50dc1e3927b /lib/diameter/src/transport/diameter_sctp.erl | |
parent | cd7c7949701883d379813c1c6f439311b1cf6aa2 (diff) | |
download | otp-11d657f6df177bf14d4d7eac5c46332ef7a9b1c2.tar.gz otp-11d657f6df177bf14d4d7eac5c46332ef7a9b1c2.tar.bz2 otp-11d657f6df177bf14d4d7eac5c46332ef7a9b1c2.zip |
Remove upgrade-related code
No longer needed to update code in runtime since the emulator is
restarted at a major release.
Diffstat (limited to 'lib/diameter/src/transport/diameter_sctp.erl')
-rw-r--r-- | lib/diameter/src/transport/diameter_sctp.erl | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/diameter/src/transport/diameter_sctp.erl b/lib/diameter/src/transport/diameter_sctp.erl index aa6f786c77..1a93972b31 100644 --- a/lib/diameter/src/transport/diameter_sctp.erl +++ b/lib/diameter/src/transport/diameter_sctp.erl @@ -338,9 +338,6 @@ handle_call({{accept, Ref}, Pid}, _, #listener{ref = Ref, {TPid, NewS} = accept(Ref, Pid, S), {reply, {ok, TPid}, NewS#listener{count = N+1}}; -handle_call(T, From, {listener,_,_,_,_,_,_} = S) -> % started in old code - handle_call(T, From, upgrade(S)); - handle_call(_, _, State) -> {reply, nok, State}. @@ -359,10 +356,7 @@ handle_info(T, #transport{} = S) -> {noreply, #transport{} = t(T,S)}; handle_info(T, #listener{} = S) -> - {noreply, #listener{} = l(T,S)}; - -handle_info(T, {listener,_,_,_,_,_,_} = S) -> % started in old code - handle_info(T, upgrade(S)). + {noreply, #listener{} = l(T,S)}. %% --------------------------------------------------------------------------- %% # code_change/3 @@ -396,9 +390,6 @@ terminate(_, #listener{socket = Sock}) -> %% --------------------------------------------------------------------------- -upgrade(S) -> - #listener{} = erlang:append_element(S, ?DEFAULT_ACCEPT). - putr(Key, Val) -> put({?MODULE, Key}, Val). @@ -502,8 +493,6 @@ transition({peeloff, Sock, {sctp, LSock, _RA, _RP, _Data} = Msg, Matches}, = S) -> ok = accept_peer(Sock, Matches), transition(Msg, S#transport{socket = Sock}); -transition({peeloff = T, _Sock, _Msg} = T, #transport{} = S) ->% from old code - transition(erlang:append_element(T, ?DEFAULT_ACCEPT), S); %% Incoming message. transition({sctp, _Sock, _RA, _RP, Data}, #transport{socket = Sock} = S) -> |