summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_policies.erl7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/rabbit_policies.erl b/src/rabbit_policies.erl
index 3ed6e33279..43f59f17d5 100644
--- a/src/rabbit_policies.erl
+++ b/src/rabbit_policies.erl
@@ -41,7 +41,6 @@ register() ->
{policy_validator, <<"expires">>},
{policy_validator, <<"max-length">>},
{policy_validator, <<"max-length-bytes">>},
- {policy_validator, <<"max-priority">>},
{policy_validator, <<"queue-mode">>},
{policy_validator, <<"overflow">>},
{operator_policy_validator, <<"expires">>},
@@ -101,12 +100,6 @@ validate_policy0(<<"max-length-bytes">>, Value)
validate_policy0(<<"max-length-bytes">>, Value) ->
{error, "~p is not a valid maximum length in bytes", [Value]};
-validate_policy0(<<"max-priority">>, Value)
- when is_integer(Value), Value >= 0, Value =< ?MAX_SUPPORTED_PRIORITY ->
- ok;
-validate_policy0(<<"max-priority">>, Value) ->
- {error, "~p is not a valid max priority (must be an integer in the 1-~p range)", [Value, ?MAX_SUPPORTED_PRIORITY]};
-
validate_policy0(<<"queue-mode">>, <<"default">>) ->
ok;
validate_policy0(<<"queue-mode">>, <<"lazy">>) ->