aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2014-02-07 11:42:58 +0100
committerHenrik Nord <[email protected]>2014-02-07 11:43:44 +0100
commit243ebeb5366a79180146eef8680a3909d340a1ca (patch)
treed0eddc82d59845037b82769e87bde239714b2193 /lib/orber
parent069b1840316979c69e4bfed1c814a239b852d8ba (diff)
parent55222b92e84960c66fcd1a220c54917f3dfbda2e (diff)
downloadotp-243ebeb5366a79180146eef8680a3909d340a1ca.tar.gz
otp-243ebeb5366a79180146eef8680a3909d340a1ca.tar.bz2
otp-243ebeb5366a79180146eef8680a3909d340a1ca.zip
Merge branch 'hsv/using_lists_droplast'
* hsv/using_lists_droplast: lib/mnesia/test/ - Replace reverse(tl(reverse(L))) with lists:droplast/1 lib/ssh - Replace reverse(tl(reverse(L))) with lists:droplast/1 lib/wx - Replace reverse(tl(reverse(L))) with lists:droplast/1 Use lists:droplast/1 in orber/orber_interceptors.erl Import and use lists:droplast/1 in v3_core/v3_kernel OTP-11678 OTP-11677
Diffstat (limited to 'lib/orber')
-rw-r--r--lib/orber/src/orber_interceptors.erl11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/orber/src/orber_interceptors.erl b/lib/orber/src/orber_interceptors.erl
index 407823ea79..62870b35b5 100644
--- a/lib/orber/src/orber_interceptors.erl
+++ b/lib/orber/src/orber_interceptors.erl
@@ -112,7 +112,7 @@ pop_system_message_interceptor(out) ->
[{_, []}] ->
ok;
[{_, Interceptors}] ->
- ets:insert(orber_interceptors, {message_out_interceptors, remove_last_element(Interceptors)});
+ ets:insert(orber_interceptors, {message_out_interceptors, lists:droplast(Interceptors)});
_ ->
corba:raise(#'INTERNAL'{completion_status=?COMPLETED_NO})
end.
@@ -151,12 +151,3 @@ apply_message_interceptors([], F, ObjRef, Bytes) ->
apply_message_interceptors([M | Rest], F, ObjRef, Bytes) ->
apply_message_interceptors(Rest, F, ObjRef, apply(M, F, [ObjRef, Bytes])).
-
-remove_last_element([]) ->
- [];
-remove_last_element([M]) ->
- [];
-remove_last_element([M |Tail]) ->
- remove_last_element([Tail]).
-
-