25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Unbind unused variable

This commit is contained in:
Christophe Romain 2017-09-27 12:13:45 +02:00
parent 22435ca562
commit 81df1ae3af

View File

@ -765,7 +765,7 @@ get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, _SubId, RSM
get_items(Nidx, JID, RSM) get_items(Nidx, JID, RSM)
end. end.
get_last_items(Nidx, From, Count) when Count > 0 -> get_last_items(Nidx, _From, Count) when Count > 0 ->
Items = mnesia:index_read(pubsub_item, Nidx, #pubsub_item.nodeidx), Items = mnesia:index_read(pubsub_item, Nidx, #pubsub_item.nodeidx),
LastItems = lists:reverse(lists:keysort(#pubsub_item.modification, Items)), LastItems = lists:reverse(lists:keysort(#pubsub_item.modification, Items)),
{result, lists:sublist(LastItems, Count)}; {result, lists:sublist(LastItems, Count)};