This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit b990b79ee11d4c60b2f7596fdcd954356c0d389c
Author: Shad Storhaug <[email protected]>
AuthorDate: Sun Oct 4 01:45:56 2020 +0700

    Lucene.Net.Analysis.Br.BrazillianStemFilter: removed unused variable 
"exclusions"
---
 src/Lucene.Net.Analysis.Common/Analysis/Br/BrazilianStemFilter.cs | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Br/BrazilianStemFilter.cs 
b/src/Lucene.Net.Analysis.Common/Analysis/Br/BrazilianStemFilter.cs
index 9c7c1c6..7d6ec70 100644
--- a/src/Lucene.Net.Analysis.Common/Analysis/Br/BrazilianStemFilter.cs
+++ b/src/Lucene.Net.Analysis.Common/Analysis/Br/BrazilianStemFilter.cs
@@ -1,6 +1,5 @@
 using Lucene.Net.Analysis.TokenAttributes;
 using System;
-using JCG = J2N.Collections.Generic;
 
 namespace Lucene.Net.Analysis.Br
 {
@@ -32,12 +31,11 @@ namespace Lucene.Net.Analysis.Br
     /// <seealso cref="Miscellaneous.SetKeywordMarkerFilter"/>
     public sealed class BrazilianStemFilter : TokenFilter
     {
-
         /// <summary>
         /// <see cref="BrazilianStemmer"/> in use by this filter.
         /// </summary>
-        private BrazilianStemmer stemmer = new BrazilianStemmer();
-        private JCG.HashSet<string> exclusions = null; // LUCENENET TODO: This 
is odd. No way to set it at all, so it cannot possibly have any values.
+        private readonly BrazilianStemmer stemmer = new BrazilianStemmer();
+        //private JCG.HashSet<string> exclusions = null; // LUCENENET 
specific: Removed unusd variable
         private readonly ICharTermAttribute termAtt;
         private readonly IKeywordAttribute keywordAttr;
 
@@ -58,7 +56,7 @@ namespace Lucene.Net.Analysis.Br
             {
                 string term = termAtt.ToString();
                 // Check the exclusion table.
-                if (!keywordAttr.IsKeyword && (exclusions == null || 
!exclusions.Contains(term)))
+                if (!keywordAttr.IsKeyword /*&& (exclusions == null || 
!exclusions.Contains(term))*/) // LUCENENET specific - removed unused variable 
"exclusions"
                 {
                     string s = stemmer.Stem(term);
                     // If not stemmed, don't waste the time adjusting the 
token.

Reply via email to