summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-02 16:11:50 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-02 16:11:50 +0100
commitfeed2048fa0a7d532b2216a992a8aa740da3a1dd (patch)
tree4f07808cd5a5d7778cb71d4977fb198e1e1f2c50 /src/rabbit.erl
parent561c46c8b6f5b26b4700cd1c2f4d2cd3697917d8 (diff)
downloadrabbitmq-server-feed2048fa0a7d532b2216a992a8aa740da3a1dd.tar.gz
improved types
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index e6bc240e..7bf87534 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -39,8 +39,8 @@
-export([log_location/1]).
--export_type([regexp/0, txn/0, thunk/1,maybe/1, info/0, info_key/0,
- msg_id/0, message/0, basic_message/0,
+-export_type([txn/0, maybe/1, info/0, info_key/0,
+ message/0, basic_message/0,
delivery/0, content/0, decoded_content/0, undecoded_content/0,
unencoded_content/0, encoded_content/0, vhost/0, ctag/0,
ip_port/0, hostname/0]).
@@ -191,8 +191,6 @@
-ifdef(use_specs).
-type(maybe(T) :: T | 'none').
--type(thunk(T) :: fun(() -> T)).
--type(regexp() :: binary()).
-type(vhost() :: binary()).
-type(ctag() :: binary()).
@@ -236,7 +234,6 @@
%% this is really an abstract type, but dialyzer does not support them
-type(txn() :: rabbit_guid:guid()).
%% this really should be an abstract type
--type(msg_id() :: non_neg_integer()).
-type(log_location() :: 'tty' | 'undefined' | file:filename()).
-type(file_suffix() :: binary()).