fix(emqx_resource_validator): remove unused code

This commit is contained in:
EMQ-YangM 2022-01-19 13:45:15 +08:00
parent 40b73fb199
commit 11f76db67d
1 changed files with 0 additions and 11 deletions

View File

@ -18,8 +18,6 @@
-export([ min/2
, max/2
, equals/2
, enum/1
, not_empty/1
]).
@ -29,15 +27,6 @@ max(Type, Max) ->
min(Type, Min) ->
limit(Type, '>=', Min).
equals(Type, Expected) ->
limit(Type, '==', Expected).
enum(Items) ->
fun(Value) ->
return(lists:member(Value, Items),
err_limit({enum, {is_member_of, Items}, {got, Value}}))
end.
not_empty(ErrMsg) ->
fun(<<>>) -> {error, ErrMsg};
(_) -> ok