From 31c13cc1c81f0eb81020e44275564d466613af1e Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 20 Apr 2012 16:52:33 +1000 Subject: [PATCH] Remove useless mnesia call --- src/mod_vcard_xupdate_odbc.erl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mod_vcard_xupdate_odbc.erl b/src/mod_vcard_xupdate_odbc.erl index b93563dd8..b6a5adfb4 100644 --- a/src/mod_vcard_xupdate_odbc.erl +++ b/src/mod_vcard_xupdate_odbc.erl @@ -20,16 +20,11 @@ -include("ejabberd.hrl"). -include("jlib.hrl"). --record(vcard_xupdate, {us, hash}). - %%==================================================================== %% gen_mod callbacks %%==================================================================== start(Host, _Opts) -> - mnesia:create_table(vcard_xupdate, - [{disc_copies, [node()]}, - {attributes, record_info(fields, vcard_xupdate)}]), ejabberd_hooks:add(c2s_update_presence, Host, ?MODULE, update_presence, 100), ejabberd_hooks:add(vcard_set, Host, @@ -68,7 +63,7 @@ vcard_set(LUser, LServer, VCARD) -> ejabberd_sm:force_update_presence(US). %%==================================================================== -%% Mnesia storage +%% ODBC storage %%==================================================================== add_xupdate(LUser, LServer, Hash) ->