summaryrefslogtreecommitdiff
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
commit1b0febe01dae9aca674393cf708c768f80822e59 (patch)
treeee649476af3030adb4e99a86bf00891b5b56acb9
parentdc22fedbe7689b64cc35bbb03def0fc295540c05 (diff)
downloadrabbitmq-server-1b0febe01dae9aca674393cf708c768f80822e59.tar.gz
simplify
-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 f6bc4071..9f1b52e6 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.