diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2015-09-04 12:36:33 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-09-17 18:00:17 +0200 |
commit | ec1969ddcadd1757f90428c6d45ce464d77bd712 (patch) | |
tree | d985cacf0d6fc3844434acee3b7e5b2e2313bfc8 /src/node_flat_odbc.erl | |
parent | Make sure that lager is first on our deps list (diff) |
Remove unused functions from old get_items api
Diffstat (limited to 'src/node_flat_odbc.erl')
-rw-r--r-- | src/node_flat_odbc.erl | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/src/node_flat_odbc.erl b/src/node_flat_odbc.erl index c3f9c7e2..68492cdc 100644 --- a/src/node_flat_odbc.erl +++ b/src/node_flat_odbc.erl @@ -46,8 +46,7 @@ get_entity_subscriptions/2, get_node_subscriptions/1, get_subscriptions/2, set_subscriptions/4, get_pending_nodes/2, get_states/1, get_state/2, - set_state/1, get_items/6, get_items/2, - get_items/7, get_items/3, get_item/7, + set_state/1, get_items/7, get_items/3, get_item/7, get_item/2, set_item/1, get_item_name/3, node_to_path/1, path_to_node/1, get_entity_subscriptions_for_send_last/2, get_last_items/3]). @@ -623,18 +622,18 @@ del_state(Nidx, JID) -> J, <<"' and nodeid='">>, Nidx, <<"';">>]), ok. -get_items(Nidx, _From) -> - case catch - ejabberd_odbc:sql_query_t([<<"select itemid, publisher, creation, modification, payload " - "from pubsub_item where nodeid='">>, Nidx, - <<"' order by modification desc;">>]) - of - {selected, - [<<"itemid">>, <<"publisher">>, <<"creation">>, <<"modification">>, <<"payload">>], RItems} -> - {result, [raw_to_item(Nidx, RItem) || RItem <- RItems]}; - _ -> - {result, []} - end. +%get_items(Nidx, _From) -> +% case catch +% ejabberd_odbc:sql_query_t([<<"select itemid, publisher, creation, modification, payload " +% "from pubsub_item where nodeid='">>, Nidx, +% <<"' order by modification desc;">>]) +% of +% {selected, +% [<<"itemid">>, <<"publisher">>, <<"creation">>, <<"modification">>, <<"payload">>], RItems} -> +% {result, [raw_to_item(Nidx, RItem) || RItem <- RItems]}; +% _ -> +% {result, []} +% end. get_items(Nidx, From, none) -> MaxItems = case catch @@ -719,9 +718,6 @@ get_items(Nidx, _From, {result, {[], none}} end. -get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, SubId) -> - get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, SubId, none). - get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, _SubId, RSM) -> SubKey = jlib:jid_tolower(JID), GenKey = jlib:jid_remove_resource(SubKey), |