aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/include
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2017-04-22 00:29:08 +0200
committerAnders Svensson <[email protected]>2017-06-12 16:13:52 +0200
commitc83d5ac4d4df41924b52cb577c255cd0c23f36ed (patch)
treeb780305b2cfc4826a62b580d23b58db8b076f42d /lib/diameter/include
parentd6b15a127ec9263bd9ec8571ec577f4e7e304182 (diff)
downloadotp-c83d5ac4d4df41924b52cb577c255cd0c23f36ed.tar.gz
otp-c83d5ac4d4df41924b52cb577c255cd0c23f36ed.tar.bz2
otp-c83d5ac4d4df41924b52cb577c255cd0c23f36ed.zip
Remove upgrade-related code
This and subsequent commits are destined for OTP 20.0.
Diffstat (limited to 'lib/diameter/include')
-rw-r--r--lib/diameter/include/diameter_gen.hrl9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/diameter/include/diameter_gen.hrl b/lib/diameter/include/diameter_gen.hrl
index 4624d42c6f..fadc6f2b60 100644
--- a/lib/diameter/include/diameter_gen.hrl
+++ b/lib/diameter/include/diameter_gen.hrl
@@ -58,14 +58,7 @@ putr(K,V) ->
put({?TAG, K}, V).
getr(K) ->
- case get({?TAG, K}) of
- undefined ->
- V = erase({?MODULE, K}), %% written in old code
- V == undefined orelse putr(K,V),
- V;
- V ->
- V
- end.
+ get({?TAG, K}).
eraser(K) ->
erase({?TAG, K}).