Return-Path: X-Original-To: apmail-lucenenet-commits-archive@www.apache.org Delivered-To: apmail-lucenenet-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6543108FB for ; Mon, 5 Jan 2015 05:32:23 +0000 (UTC) Received: (qmail 41109 invoked by uid 500); 5 Jan 2015 05:32:24 -0000 Delivered-To: apmail-lucenenet-commits-archive@lucenenet.apache.org Received: (qmail 41079 invoked by uid 500); 5 Jan 2015 05:32:24 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 41069 invoked by uid 99); 5 Jan 2015 05:32:24 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2015 05:32:24 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4806AA3EE9D; Mon, 5 Jan 2015 05:32:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: synhershko@apache.org To: commits@lucenenet.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: lucenenet git commit: remove unnecessary byte buffer Date: Mon, 5 Jan 2015 05:32:24 +0000 (UTC) Repository: lucenenet Updated Branches: refs/heads/master 67f47ad1b -> 39ae8f9f0 remove unnecessary byte buffer Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/39ae8f9f Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/39ae8f9f Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/39ae8f9f Branch: refs/heads/master Commit: 39ae8f9f0ec9705a81f736215123e73964f6ef07 Parents: 67f47ad Author: Laimonas Simutis Authored: Sun Jan 4 20:26:47 2015 -0500 Committer: Laimonas Simutis Committed: Sun Jan 4 20:26:47 2015 -0500 ---------------------------------------------------------------------- src/Lucene.Net.Core/Support/Inflater.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/39ae8f9f/src/Lucene.Net.Core/Support/Inflater.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Support/Inflater.cs b/src/Lucene.Net.Core/Support/Inflater.cs index 38a2129..b7118a3 100644 --- a/src/Lucene.Net.Core/Support/Inflater.cs +++ b/src/Lucene.Net.Core/Support/Inflater.cs @@ -102,9 +102,7 @@ namespace Lucene.Net.Support public int Inflate(byte[] buffer, int offset, int count) { - //LUCENE TODO: brute-force converting for now to eliminate TypeMismatchError - byte[] byteBuffer = buffer.Select(b => (byte)b).ToArray(); - return inflate3Method(byteBuffer, offset, count); + return inflate3Method(buffer, offset, count); } public void Reset()