lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
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 GMT
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<String, String> aa = ParseMap(body);
-					args.Min = ReadDouble(aa["min"]);
-					args.Max = ReadDouble(aa["max"]);
 					args.SetDistPrecision(ReadDouble(aa["distPrec"]));
 					if (aa.Count > 3)
 					{



Mime
View raw message