Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 74D7A200C0E for ; Wed, 1 Feb 2017 20:48:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 73725160B5E; Wed, 1 Feb 2017 19:48:31 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C58AE160B41 for ; Wed, 1 Feb 2017 20:48:30 +0100 (CET) Received: (qmail 61573 invoked by uid 500); 1 Feb 2017 19:48:30 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 61562 invoked by uid 99); 1 Feb 2017 19:48:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2017 19:48:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C43A0DFCDD; Wed, 1 Feb 2017 19:48:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vatamane@apache.org To: commits@couchdb.apache.org Date: Wed, 01 Feb 2017 19:48:29 -0000 Message-Id: <8ab0c53aa08940388b32282111685ebf@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] couch commit: updated refs/heads/master to bbbd532 archived-at: Wed, 01 Feb 2017 19:48:31 -0000 Repository: couchdb-couch Updated Branches: refs/heads/master c73a8831b -> bbbd53223 Remove dead code from couch_file This code was left over after removing 8kB read-ahead https://github.com/apache/couchdb-couch/pull/223/commits/d52a5335d930d11ade4953c8576d22f55872ff6f COUCHDB-3284 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/bf12a7a3 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/bf12a7a3 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/bf12a7a3 Branch: refs/heads/master Commit: bf12a7a3336bd438493e7db1d090160f1c1a09f3 Parents: c73a883 Author: Nick Vatamaniuc Authored: Wed Feb 1 14:42:59 2017 -0500 Committer: Nick Vatamaniuc Committed: Wed Feb 1 14:42:59 2017 -0500 ---------------------------------------------------------------------- src/couch_file.erl | 9 --------- 1 file changed, 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/bf12a7a3/src/couch_file.erl ---------------------------------------------------------------------- diff --git a/src/couch_file.erl b/src/couch_file.erl index 5d11083..d40c525 100644 --- a/src/couch_file.erl +++ b/src/couch_file.erl @@ -587,15 +587,6 @@ find_newest_header(Fd, [{Location, Size} | LocationSizes]) -> end. -maybe_read_more_iolist(Buffer, DataSize, _, _) - when DataSize =< byte_size(Buffer) -> - <> = 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