From eebd4bbd8f755962a43e4b9aa5ecb54eb913f210 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 2 Sep 2015 14:13:23 +0300 Subject: [PATCH] Remove unused function now_to_iso/1 --- src/mod_mam.erl | 5 ----- 1 file changed, 5 deletions(-) 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}}), -- 2.49.0