From 470669fa6b5200bb522482b1c6e1c3f1eac2c754 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Sun, 21 May 2017 11:40:24 +0300 Subject: [PATCH] Get rid of db_type warning for mod_vcard_xupdate --- src/mod_vcard_xupdate.erl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/mod_vcard_xupdate.erl b/src/mod_vcard_xupdate.erl index 74f6b7364..0da8198d9 100644 --- a/src/mod_vcard_xupdate.erl +++ b/src/mod_vcard_xupdate.erl @@ -162,14 +162,6 @@ compute_hash(VCard) -> %%==================================================================== %% Options %%==================================================================== -mod_opt_type(db_type) -> - fun(_) -> - ?WARNING_MSG("option 'db_type' for module '~s' has no effect: " - "the module doesn't require database anymore; " - "feel free to delete any tables related to the module", - [?MODULE]), - erlang:error(badarg) - end; mod_opt_type(O) when O == cache_life_time; O == cache_size -> fun (I) when is_integer(I), I > 0 -> I; (infinity) -> infinity @@ -177,4 +169,4 @@ mod_opt_type(O) when O == cache_life_time; O == cache_size -> mod_opt_type(O) when O == use_cache; O == cache_missed -> fun (B) when is_boolean(B) -> B end; mod_opt_type(_) -> - [db_type, cache_life_time, cache_size, use_cache, cache_missed]. + [cache_life_time, cache_size, use_cache, cache_missed].