aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/app
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-05-07 12:47:49 +0200
committerMicael Karlberg <[email protected]>2019-05-22 18:20:06 +0200
commit6d955c8377f4df9c215424349050b38b8c7628b4 (patch)
treea6209f25e02083390c454cdbfa94734761cd7349 /lib/snmp/src/app
parent55cee8416a689d3adf57fc0b20959c328f8c83bd (diff)
downloadotp-6d955c8377f4df9c215424349050b38b8c7628b4.tar.gz
otp-6d955c8377f4df9c215424349050b38b8c7628b4.tar.bz2
otp-6d955c8377f4df9c215424349050b38b8c7628b4.zip
[snmp] Remove use of the deprecated get_stacktrace function
Removed the use of the deprecated erlang:stacktrace() function. Instead make use of the 'catch Class:Error:Stacktrace' feature. OTP-15332
Diffstat (limited to 'lib/snmp/src/app')
-rw-r--r--lib/snmp/src/app/snmp_internal.hrl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/snmp/src/app/snmp_internal.hrl b/lib/snmp/src/app/snmp_internal.hrl
index 374767df15..97a7c63ef1 100644
--- a/lib/snmp/src/app/snmp_internal.hrl
+++ b/lib/snmp/src/app/snmp_internal.hrl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2006-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2006-2019. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -25,8 +25,6 @@
-define(APPLICATION, snmp).
-endif.
--define(STACK(), erlang:get_stacktrace()).
-
-define(snmp_info(C, F, A), ?snmp_msg(info_msg, C, F, A)).
-define(snmp_warning(C, F, A), ?snmp_msg(warning_msg, C, F, A)).
-define(snmp_error(C, F, A), ?snmp_msg(error_msg, C, F, A)).