diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2013-03-21 12:03:31 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-03-21 12:03:31 +0000 |
commit | 1b0febe01dae9aca674393cf708c768f80822e59 (patch) | |
tree | ee649476af3030adb4e99a86bf00891b5b56acb9 | |
parent | dc22fedbe7689b64cc35bbb03def0fc295540c05 (diff) | |
download | rabbitmq-server-1b0febe01dae9aca674393cf708c768f80822e59.tar.gz |
simplify
-rw-r--r-- | src/rabbit_registry.erl | 12 |
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. |