This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]
- Loading branch information
Showing
2 changed files
with
7 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
-module(rabbit_registry_class). | ||
|
||
-ifdef(use_specs). | ||
|
||
-callback added_to_rabbit_registry(atom(), atom()) -> ok. | ||
|
||
-callback removed_from_rabbit_registry(atom()) -> ok. | ||
|
||
-else. | ||
|
||
-export([behaviour_info/1]). | ||
|
||
behaviour_info(callbacks) -> | ||
[{added_to_rabbit_registry, 2}, {removed_from_rabbit_registry, 1}]; | ||
behaviour_info(_Other) -> | ||
undefined. | ||
|
||
-endif. |