Prune dead functions.

This commit is contained in:
Craig Everett 2019-12-19 18:42:24 +09:00
parent f40d8a940a
commit 977604020d

View File

@ -34,7 +34,6 @@
build/0, build/0,
rm_rf/1, rm/1, rm_rf/1, rm/1,
enqueue_unique/2, enqueue_unique/2,
time_diff/2, elapsed_time/1,
b_to_t/1, b_to_ts/1]). b_to_t/1, b_to_ts/1]).
-include("zx_logger.hrl"). -include("zx_logger.hrl").
@ -730,25 +729,6 @@ enqueue_unique(Term, Queue) ->
end. 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. -spec b_to_t(binary()) -> {ok, term()} | error.
%% @private %% @private
%% A wrapper for the binary_to_term/1 BIF to hide the try..catch mess in the places we %% A wrapper for the binary_to_term/1 BIF to hide the try..catch mess in the places we