mod_http_upload_quota: Mark unused variables
This commit is contained in:
parent
b88e766571
commit
3652dd1796
|
@ -246,7 +246,7 @@ handle_slot_request(Acc, _JID, _Path, _Size, _Lang) -> Acc.
|
||||||
non_neg_integer())
|
non_neg_integer())
|
||||||
-> 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 ->
|
when is_integer(OldSize), OldSize + SlotSize =< MaxSize ->
|
||||||
OldSize + SlotSize;
|
OldSize + SlotSize;
|
||||||
enforce_quota(UserDir, SlotSize, _OldSize, MinSize, MaxSize) ->
|
enforce_quota(UserDir, SlotSize, _OldSize, MinSize, MaxSize) ->
|
||||||
|
@ -254,7 +254,7 @@ enforce_quota(UserDir, SlotSize, _OldSize, MinSize, MaxSize) ->
|
||||||
TimeA > TimeB
|
TimeA > TimeB
|
||||||
end, gather_file_info(UserDir)),
|
end, gather_file_info(UserDir)),
|
||||||
{DelFiles, OldSize, NewSize} =
|
{DelFiles, OldSize, NewSize} =
|
||||||
lists:foldl(fun({Path, Size, _Time}, {[], AccSize, AccSize})
|
lists:foldl(fun({_Path, Size, _Time}, {[], AccSize, AccSize})
|
||||||
when AccSize + Size + SlotSize =< MinSize ->
|
when AccSize + Size + SlotSize =< MinSize ->
|
||||||
{[], AccSize + Size, AccSize + Size};
|
{[], AccSize + Size, AccSize + Size};
|
||||||
({Path, Size, _Time}, {[], AccSize, AccSize}) ->
|
({Path, Size, _Time}, {[], AccSize, AccSize}) ->
|
||||||
|
|
Loading…
Reference in New Issue