From 53477343824e13a009c7140a45fbd4b25c1628a8 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Wed, 17 Mar 2021 19:35:14 +0300 Subject: Squash some warnings emitted on Erlang 24 --- src/ct_helper.erl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/ct_helper.erl') diff --git a/src/ct_helper.erl b/src/ct_helper.erl index 0c1247b..8e9d6d1 100644 --- a/src/ct_helper.erl +++ b/src/ct_helper.erl @@ -240,18 +240,10 @@ make_certs_in_ets() -> %% @doc Return the name of the calling function. %% -%% With a native VM we always return the current pid because -%% the stacktrace is not as well maintained and may not return -%% the correct function name, especially when there is a mix -%% of normal and native code. +%% DEPRECATED: Use ?FUNCTION_NAME instead. name() -> - case code:is_module_native(kernel) of - true -> - self(); - false -> - element(2, hd(tl(element(2, process_info(self(), current_stacktrace))))) - end. + element(2, hd(tl(element(2, process_info(self(), current_stacktrace))))). %% @doc Start and stop applications and their dependencies. -- cgit v1.2.3