lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [47/50] [abbrv] lucenenet git commit: Lucene.Net.Analysis.Common.Analysis.Util.AbstractAnalysisFactory: Removed support for LCID in GetCulture method, since it is not supported in .NET core and is not likely to be used anyway.
Date Wed, 15 Mar 2017 23:50:29 GMT
Lucene.Net.Analysis.Common.Analysis.Util.AbstractAnalysisFactory: Removed support for LCID
in GetCulture method, since it is not supported in .NET core and is not likely to be used
anyway.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/d1059452
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/d1059452
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/d1059452

Branch: refs/heads/api-work
Commit: d10594527bc4f1607e3f03422456d9ff56d4baa3
Parents: 0a7ea10
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Mar 16 06:18:54 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 16 06:18:54 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Util/AbstractAnalysisFactory.cs                 | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d1059452/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs b/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
index 639e3f9..0fef5cf 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Util/AbstractAnalysisFactory.cs
@@ -321,8 +321,7 @@ namespace Lucene.Net.Analysis.Util
         /// <summary>
         /// Gets a <see cref="CultureInfo"/> value of the specified argument key <paramref
name="name"/>.
         /// <para/>
-        /// To specify the invariant culture, pass the string <c>"invariant"</c>.
To specify
-        /// the culture using the <see cref="CultureInfo.LCID"/>, pass the value as
an <see cref="int"/>.
+        /// To specify the invariant culture, pass the string <c>"invariant"</c>.
         /// <para/>
         /// LUCENENET specific
         /// </summary>
@@ -345,11 +344,6 @@ namespace Lucene.Net.Analysis.Util
                     throw new System.ArgumentException("Configuration Error: '" + name +
"' can not be parsed in " + this.GetType().Name, e);
                 }
             }
-            int lcid;
-            if ((lcid = GetInt32(args, name, int.MinValue)) != int.MinValue)
-            {
-                return new CultureInfo(lcid);
-            }
             return defaultVal;
         }
 


Mime
View raw message