From: Evgeniy Khramtsov Date: Wed, 2 Sep 2015 11:13:23 +0000 (+0300) Subject: Remove unused function now_to_iso/1 X-Git-Tag: 15.09~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eebd4bbd8f755962a43e4b9aa5ecb54eb913f210;p=ejabberd Remove unused function now_to_iso/1 --- diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 730b2ba91..b476ff681 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -931,11 +931,6 @@ usec_to_now(Int) -> Sec = Secs rem 1000000, {MSec, Sec, USec}. -now_to_iso({_, _, USec} = Now) -> - DateTime = calendar:now_to_universal_time(Now), - {ISOTimestamp, Zone} = jlib:timestamp_to_iso(DateTime, utc, USec), - <>. - datetime_to_now(DateTime, USecs) -> Seconds = calendar:datetime_to_gregorian_seconds(DateTime) - calendar:datetime_to_gregorian_seconds({{1970, 1, 1}, {0, 0, 0}}),