diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-09-27 12:13:45 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-09-27 12:13:45 +0200 |
commit | 81df1ae3af27c69b4242f34574b1edf915d06ab6 (patch) | |
tree | 1b5b9b76ea96298347c100311f816f263aa92357 /src/node_flat.erl | |
parent | Remove calls to deprecated functions (diff) |
Unbind unused variable
Diffstat (limited to 'src/node_flat.erl')
-rw-r--r-- | src/node_flat.erl | 2 |
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)}; |