aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-08-04 23:51:45 +0200
committerAnders Svensson <[email protected]>2015-08-04 23:52:38 +0200
commit84004d4f99271e8324f7d1e3fb8a3cd68109d456 (patch)
tree54fb54ee3dd55752951e029f585c062da7301f59 /lib
parente6e64a36fbc26e30b97df3bc1105eceef104f318 (diff)
downloadotp-84004d4f99271e8324f7d1e3fb8a3cd68109d456.tar.gz
otp-84004d4f99271e8324f7d1e3fb8a3cd68109d456.tar.bz2
otp-84004d4f99271e8324f7d1e3fb8a3cd68109d456.zip
Remove unnecessary redefinition of erlang:max/2
The function already operates on arbitrary terms.
Diffstat (limited to 'lib')
-rw-r--r--lib/diameter/src/info/diameter_info.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/diameter/src/info/diameter_info.erl b/lib/diameter/src/info/diameter_info.erl
index 10972f3231..5ecce2206f 100644
--- a/lib/diameter/src/info/diameter_info.erl
+++ b/lib/diameter/src/info/diameter_info.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2014. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2015. 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
@@ -51,8 +51,6 @@
p/1,
p/3]).
--compile({no_auto_import,[max/2]}).
-
-export([collect/2]).
-define(LONG_TIMEOUT, 30000).
@@ -683,9 +681,6 @@ pt(T) ->
recsplit(SFun, Rec) ->
fun(Fs,Vs) -> SFun(element(1, Rec), Fs, Vs) end.
-max(A, B) ->
- if A > B -> A; true -> B end.
-
keyfetch(Key, List) ->
{Key,V} = lists:keyfind(Key, 1, List),
V.