mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Unbind unused variable
This commit is contained in:
parent
22435ca562
commit
81df1ae3af
@ -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)};
|
||||||
|
Loading…
Reference in New Issue
Block a user