From 58c209a6d6aa12e0e319d74971a16735273c67a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 27 Jun 2016 15:09:17 +0200 Subject: Use the new -spec format The old format is removed in Erlang 19.0, leading to build errors. Also, get rid of the `use_specs` macro and thus always define -spec() & friends. While here, unnify the style of -type and -spec. References rabbitmq/rabbitmq-server#860. [#118562897] [#122335241] --- deps/rabbit_common/src/app_utils.erl | 4 ---- 1 file changed, 4 deletions(-) (limited to 'deps/rabbit_common/src/app_utils.erl') diff --git a/deps/rabbit_common/src/app_utils.erl b/deps/rabbit_common/src/app_utils.erl index 748f285af9..6504c3f543 100644 --- a/deps/rabbit_common/src/app_utils.erl +++ b/deps/rabbit_common/src/app_utils.erl @@ -19,8 +19,6 @@ stop_applications/1, stop_applications/2, app_dependency_order/2, app_dependencies/1]). --ifdef(use_specs). - -type error_handler() :: fun((atom(), any()) -> 'ok'). -spec load_applications([atom()]) -> 'ok'. @@ -31,8 +29,6 @@ -spec app_dependency_order([atom()], boolean()) -> [digraph:vertex()]. -spec app_dependencies(atom()) -> [atom()]. --endif. - %%--------------------------------------------------------------------------- %% Public API -- cgit v1.2.1