From 1e33e34f1eb24fe04942b6b29dbbe26e12c97671 Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Mon, 10 Sep 2018 12:03:50 +0200 Subject: [snmp|compiler] Spurious version message removed The snmp mib compiler printed an spurious version message if the 'version' option was provided. OTP-15290 --- lib/snmp/src/compile/snmpc.erl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/snmp/src/compile') diff --git a/lib/snmp/src/compile/snmpc.erl b/lib/snmp/src/compile/snmpc.erl index 7f627d66d9..c810bfcd41 100644 --- a/lib/snmp/src/compile/snmpc.erl +++ b/lib/snmp/src/compile/snmpc.erl @@ -169,11 +169,7 @@ get_version() -> MI = ?MODULE:module_info(), Attr = get_info(attributes, MI), Vsn = get_info(app_vsn, Attr), - Comp = get_info(compile, MI), - Time = get_info(time, Comp), - {Year, Month, Day, Hour, Min, Sec} = Time, - io_lib:format("~s [~.4w-~.2.0w-~.2.0w ~.2.0w:~.2.0w:~.2.0w]", - [Vsn, Year, Month, Day, Hour, Min, Sec]). + Vsn. maybe_display_options(Opts) -> case lists:member(options, Opts) of -- cgit v1.2.3