aboutsummaryrefslogtreecommitdiff
path: root/src/node_flat.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-09-27 12:13:45 +0200
committerChristophe Romain <christophe.romain@process-one.net>2017-09-27 12:13:45 +0200
commit81df1ae3af27c69b4242f34574b1edf915d06ab6 (patch)
tree1b5b9b76ea96298347c100311f816f263aa92357 /src/node_flat.erl
parentRemove calls to deprecated functions (diff)
Unbind unused variable
Diffstat (limited to 'src/node_flat.erl')
-rw-r--r--src/node_flat.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_flat.erl b/src/node_flat.erl
index 57bf61394..160f6d27c 100644
--- a/src/node_flat.erl
+++ b/src/node_flat.erl
@@ -765,7 +765,7 @@ get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, _SubId, RSM
get_items(Nidx, JID, RSM)
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),
LastItems = lists:reverse(lists:keysort(#pubsub_item.modification, Items)),
{result, lists:sublist(LastItems, Count)};