mod_http_upload_quota: Mark unused variables

This commit is contained in:
Holger Weiss 2015-10-24 18:31:16 +02:00
parent b88e766571
commit 3652dd1796
1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ handle_slot_request(Acc, _JID, _Path, _Size, _Lang) -> Acc.
non_neg_integer())
-> non_neg_integer().
enforce_quota(UserDir, SlotSize, OldSize, MinSize, MaxSize)
enforce_quota(_UserDir, SlotSize, OldSize, _MinSize, MaxSize)
when is_integer(OldSize), OldSize + SlotSize =< MaxSize ->
OldSize + SlotSize;
enforce_quota(UserDir, SlotSize, _OldSize, MinSize, MaxSize) ->
@ -254,7 +254,7 @@ enforce_quota(UserDir, SlotSize, _OldSize, MinSize, MaxSize) ->
TimeA > TimeB
end, gather_file_info(UserDir)),
{DelFiles, OldSize, NewSize} =
lists:foldl(fun({Path, Size, _Time}, {[], AccSize, AccSize})
lists:foldl(fun({_Path, Size, _Time}, {[], AccSize, AccSize})
when AccSize + Size + SlotSize =< MinSize ->
{[], AccSize + Size, AccSize + Size};
({Path, Size, _Time}, {[], AccSize, AccSize}) ->