Prune dead functions.
This commit is contained in:
parent
f40d8a940a
commit
977604020d
@ -34,7 +34,6 @@
|
||||
build/0,
|
||||
rm_rf/1, rm/1,
|
||||
enqueue_unique/2,
|
||||
time_diff/2, elapsed_time/1,
|
||||
b_to_t/1, b_to_ts/1]).
|
||||
|
||||
-include("zx_logger.hrl").
|
||||
@ -730,25 +729,6 @@ enqueue_unique(Term, Queue) ->
|
||||
end.
|
||||
|
||||
|
||||
-spec time_diff(Before, After) -> Diff
|
||||
when Before :: calendar:datetime(),
|
||||
After :: calendar:datetime(),
|
||||
Diff :: integer().
|
||||
|
||||
time_diff(Before, After) ->
|
||||
Early = calendar:datetime_to_gregorian_seconds(Before),
|
||||
Late = calendar:datetime_to_gregorian_seconds(After),
|
||||
Late - Early.
|
||||
|
||||
|
||||
-spec elapsed_time(Timestamp) -> Diff
|
||||
when Timestamp :: calendar:datetime(),
|
||||
Diff :: integer().
|
||||
|
||||
elapsed_time(Timestamp) ->
|
||||
time_diff(Timestamp, calendar:universal_time()).
|
||||
|
||||
|
||||
-spec b_to_t(binary()) -> {ok, term()} | error.
|
||||
%% @private
|
||||
%% A wrapper for the binary_to_term/1 BIF to hide the try..catch mess in the places we
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user