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 8AEDCD317 for ; Fri, 31 Aug 2012 10:09:21 +0000 (UTC) Received: (qmail 11797 invoked by uid 500); 31 Aug 2012 10:09:21 -0000 Delivered-To: apmail-lucenenet-commits-archive@lucenenet.apache.org Received: (qmail 11644 invoked by uid 500); 31 Aug 2012 10:09:17 -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 11611 invoked by uid 500); 31 Aug 2012 10:09:16 -0000 Delivered-To: apmail-lucene-lucene-net-commits@lucene.apache.org Received: (qmail 11608 invoked by uid 99); 31 Aug 2012 10:09:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 10:09:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Aug 2012 10:09:14 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 8F6A423888FD; Fri, 31 Aug 2012 10:08:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1379393 - in /incubator/lucene.net/trunk/src/contrib/Spatial/Queries: SpatialArgs.cs SpatialArgsParser.cs Date: Fri, 31 Aug 2012 10:08:30 -0000 To: lucene-net-commits@lucene.apache.org From: synhershko@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120831100830.8F6A423888FD@eris.apache.org> Author: synhershko Date: Fri Aug 31 10:08:30 2012 New Revision: 1379393 URL: http://svn.apache.org/viewvc?rev=1379393&view=rev Log: LUCENE-4197 SpatialArgs- remove unused min and max params Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgsParser.cs Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs?rev=1379393&r1=1379392&r2=1379393&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs (original) +++ incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgs.cs Fri Aug 31 10:08:30 2012 @@ -43,10 +43,6 @@ namespace Lucene.Net.Spatial.Queries private Shape shape; private double distPrecision = DEFAULT_DIST_PRECISION; - // Useful for 'distance' calculations - public double? Min { get; set; } - public double? Max { get; set; } - public SpatialArgs(SpatialOperation operation) { this.Operation = operation; @@ -74,14 +70,6 @@ namespace Lucene.Net.Spatial.Queries var str = new StringBuilder(); str.Append(Operation.GetName()).Append('('); str.Append(shape.ToString()); - if (Min != null) - { - str.Append(" min=").Append(Min); - } - if (Max != null) - { - str.Append(" max=").Append(Max); - } str.Append(" distPrec=").AppendFormat("{0:0.00}%", distPrecision / 100d); str.Append(')'); return str.ToString(); Modified: incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgsParser.cs URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgsParser.cs?rev=1379393&r1=1379392&r2=1379393&view=diff ============================================================================== --- incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgsParser.cs (original) +++ incubator/lucene.net/trunk/src/contrib/Spatial/Queries/SpatialArgsParser.cs Fri Aug 31 10:08:30 2012 @@ -53,8 +53,6 @@ namespace Lucene.Net.Spatial.Queries if (body.Length > 0) { Dictionary aa = ParseMap(body); - args.Min = ReadDouble(aa["min"]); - args.Max = ReadDouble(aa["max"]); args.SetDistPrecision(ReadDouble(aa["distPrec"])); if (aa.Count > 3) {