summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-04-06 15:04:07 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-04-06 15:04:07 +0100
commita3642ecb8f559a7b316741b8796c4d36cb3e8e48 (patch)
treec2a3ba49466d62bbb6c60f8de2c6f19d0fc79bbd /src
parentf63a204b0e1359572ee7dc5584201a3cfd021d79 (diff)
downloadrabbitmq-server-git-a3642ecb8f559a7b316741b8796c4d36cb3e8e48.tar.gz
No longer needed.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_misc.erl7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl
index 28c4596e53..324ec534f8 100644
--- a/src/rabbit_misc.erl
+++ b/src/rabbit_misc.erl
@@ -34,7 +34,6 @@
-export([with_user/2, with_user_and_vhost/3]).
-export([execute_mnesia_transaction/1]).
-export([execute_mnesia_transaction/2]).
--export([execute_pre_post_mnesia_tx/1]).
-export([execute_mnesia_tx_with_tail/1]).
-export([ensure_ok/2]).
-export([makenode/1, nodeparts/1, cookie_hash/0, tcp_name/3]).
@@ -136,7 +135,6 @@
-spec(execute_mnesia_transaction/1 :: (thunk(A)) -> A).
-spec(execute_mnesia_transaction/2 ::
(thunk(A), fun ((A, boolean()) -> B)) -> B).
--spec(execute_pre_post_mnesia_tx/1 :: (fun ((boolean()) -> B)) -> B).
-spec(execute_mnesia_tx_with_tail/1 ::
(thunk(fun ((boolean()) -> B))) -> B | (fun ((boolean()) -> B))).
-spec(ensure_ok/2 :: (ok_or_error(), atom()) -> 'ok').
@@ -407,11 +405,6 @@ execute_mnesia_transaction(TxFun, PrePostCommitFun) ->
Result
end), false).
-%% Like the above, but without the main body.
-execute_pre_post_mnesia_tx(PrePostCommitFun) ->
- execute_mnesia_transaction(fun () -> ok end,
- fun (ok, Tx) -> PrePostCommitFun(Tx) end).
-
%% Like execute_mnesia_transaction/2, but TxFun is expected to return a
%% TailFun which gets called immediately before and after the tx commit
execute_mnesia_tx_with_tail(TxFun) ->