summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2013-03-21 12:03:31 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2013-03-21 12:03:31 +0000
commit0c58baad2ef4aad18a76409c80a95351feb44cc8 (patch)
treeee649476af3030adb4e99a86bf00891b5b56acb9 /src
parent392d1fe99fb99ccf8ceb2b80bb94294895a8bda5 (diff)
downloadrabbitmq-server-git-0c58baad2ef4aad18a76409c80a95351feb44cc8.tar.gz
simplify
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_registry.erl12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/rabbit_registry.erl b/src/rabbit_registry.erl
index f6bc40718e..9f1b52e602 100644
--- a/src/rabbit_registry.erl
+++ b/src/rabbit_registry.erl
@@ -108,16 +108,8 @@ conditional_register(_) ->
ok.
conditional_unregister({exchange_decorator, Type}) ->
- case lookup_module(exchange_decorator, Type) of
- {ok, ModName} ->
- case erlang:function_exported(ModName, route, 2) of
- true -> true = ets:delete(?ETS_NAME,
- {exchange_decorator_route, Type});
- false -> ok
- end;
- {error, not_found} ->
- ok
- end;
+ true = ets:delete(?ETS_NAME, {exchange_decorator_route, Type}),
+ ok;
conditional_unregister(_) ->
ok.