Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Remove dead code from couch_file
This code was left over after removing 8kB read-ahead

d52a533

COUCHDB-3284
  • Loading branch information
nickva committed Feb 1, 2017
1 parent c73a883 commit bf12a7a3336bd438493e7db1d090160f1c1a09f3
Showing 1 changed file with 0 additions and 9 deletions.
@@ -587,15 +587,6 @@ find_newest_header(Fd, [{Location, Size} | LocationSizes]) ->
end.


maybe_read_more_iolist(Buffer, DataSize, _, _)
when DataSize =< byte_size(Buffer) ->
<<Data:DataSize/binary, _/binary>> = Buffer,
[Data];
maybe_read_more_iolist(Buffer, DataSize, NextPos, File) ->
{Missing, _} =
read_raw_iolist_int(File, NextPos, DataSize - byte_size(Buffer)),
[Buffer, Missing].

-spec read_raw_iolist_int(#file{}, Pos::non_neg_integer(), Len::non_neg_integer()) ->
{Data::iolist(), CurPos::non_neg_integer()}.
read_raw_iolist_int(Fd, {Pos, _Size}, Len) -> % 0110 UPGRADE CODE

0 comments on commit bf12a7a

Please sign in to comment.