aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_reg.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-01-24 14:34:56 +0100
committerAnders Svensson <[email protected]>2013-02-08 15:28:03 +0100
commit74755d8d18aa1769840b0914fe73e9c5c4b3219b (patch)
treeb02c8a4decbe580c3852cf41cdb2a1d8fbc1a4ad /lib/diameter/src/base/diameter_reg.erl
parent5027671e5d7871f565fd0ce4165ca0039661a79d (diff)
downloadotp-74755d8d18aa1769840b0914fe73e9c5c4b3219b.tar.gz
otp-74755d8d18aa1769840b0914fe73e9c5c4b3219b.tar.bz2
otp-74755d8d18aa1769840b0914fe73e9c5c4b3219b.zip
Remove upgrade code not needed after application restart
Which will be the case with R16B in this case.
Diffstat (limited to 'lib/diameter/src/base/diameter_reg.erl')
-rw-r--r--lib/diameter/src/base/diameter_reg.erl9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/diameter/src/base/diameter_reg.erl b/lib/diameter/src/base/diameter_reg.erl
index 619b12ecad..ac58e4bf5b 100644
--- a/lib/diameter/src/base/diameter_reg.erl
+++ b/lib/diameter/src/base/diameter_reg.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2013. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -208,10 +208,6 @@ init(_) ->
%% # handle_call/3
%% ----------------------------------------------------------
-handle_call(Req, From, S)
- when not is_record(S, state) ->
- handle_call(Req, From, upgrade(S));
-
handle_call({add, Fun, Key, Pid}, _, S) ->
B = Fun(?TABLE, {Key, Pid}),
monitor(B andalso no_monitor(Pid), Pid),
@@ -281,9 +277,6 @@ code_change(_OldVsn, State, _Extra) ->
%% ===========================================================================
-upgrade(S) ->
- #state{} = list_to_tuple(tuple_to_list(S) ++ [[]]).
-
monitor(true, Pid) ->
ets:insert(?TABLE, ?MONITOR(Pid, erlang:monitor(process, Pid)));
monitor(false, _) ->