Skip to content

Commit a96e768

Browse files
authored
Remove unused private members, apache#669 (apache#1139)
* Remove unused private members, apache#669 * Remove two overloads of Rule.Contains and convert to use ReadOnlySpan<char> * Add back EndsWith method to GreekStemmer, optimized for ReadOnlySpan<char> * Use char[] for EndsWith
1 parent 54505e8 commit a96e768

38 files changed

+604
-605
lines changed

src/Lucene.Net.Analysis.Common/Analysis/CharFilter/HTMLStripCharFilter.cs

+41-39
Original file line numberDiff line numberDiff line change
@@ -31056,36 +31056,37 @@ private void YyClose()
3105631056
zzReader.Dispose();
3105731057
}
3105831058

31059-
/// <summary>
31060-
/// Resets the scanner to read from a new input stream.
31061-
/// Does not close the old reader.
31062-
/// <para/>
31063-
/// All internal variables are reset, the old input stream
31064-
/// <b>cannot</b> be reused (internal buffer is discarded and lost).
31065-
/// Lexical state is set to <see cref="YYINITIAL"/>.
31066-
/// <para/>
31067-
/// Internal scan buffer is resized down to its initial length, if it has grown.
31068-
/// </summary>
31069-
/// <param name="reader">the new input stream</param>
31070-
private void YyReset(BufferedCharFilter reader)
31071-
{
31072-
zzReader = reader;
31073-
//zzAtBOL = true; // LUCENENET: Never read
31074-
zzAtEOF = false;
31075-
zzEOFDone = false;
31076-
zzEndRead = zzStartRead = 0;
31077-
zzCurrentPos = zzMarkedPos = 0;
31078-
//yyline = yychar = yycolumn = 0; // LUCENENET: Never read
31079-
zzLexicalState = YYINITIAL;
31080-
if (zzBuffer.Length > ZZ_BUFFERSIZE)
31081-
zzBuffer = new char[ZZ_BUFFERSIZE];
31082-
}
31059+
// LUCENENET: commented-out unused method
31060+
// /// <summary>
31061+
// /// Resets the scanner to read from a new input stream.
31062+
// /// Does not close the old reader.
31063+
// /// <para/>
31064+
// /// All internal variables are reset, the old input stream
31065+
// /// <b>cannot</b> be reused (internal buffer is discarded and lost).
31066+
// /// Lexical state is set to <see cref="YYINITIAL"/>.
31067+
// /// <para/>
31068+
// /// Internal scan buffer is resized down to its initial length, if it has grown.
31069+
// /// </summary>
31070+
// /// <param name="reader">the new input stream</param>
31071+
// private void YyReset(BufferedCharFilter reader)
31072+
// {
31073+
// zzReader = reader;
31074+
// //zzAtBOL = true; // LUCENENET: Never read
31075+
// zzAtEOF = false;
31076+
// zzEOFDone = false;
31077+
// zzEndRead = zzStartRead = 0;
31078+
// zzCurrentPos = zzMarkedPos = 0;
31079+
// //yyline = yychar = yycolumn = 0; // LUCENENET: Never read
31080+
// zzLexicalState = YYINITIAL;
31081+
// if (zzBuffer.Length > ZZ_BUFFERSIZE)
31082+
// zzBuffer = new char[ZZ_BUFFERSIZE];
31083+
// }
3108331084

31084-
31085-
/// <summary>
31086-
/// Returns the current lexical state.
31087-
/// </summary>
31088-
private int YyState => zzLexicalState;
31085+
// LUCENENET: commented out unused property
31086+
// /// <summary>
31087+
// /// Returns the current lexical state.
31088+
// /// </summary>
31089+
// private int YyState => zzLexicalState;
3108931090

3109031091
/// <summary>
3109131092
/// Enters a new lexical state
@@ -31103,16 +31104,17 @@ private void YyBegin(int newState)
3110331104
///// <returns>Returns the text matched by the current regular expression.</returns>
3110431105
//private string YyText => new string(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);
3110531106

31106-
/// <summary>
31107-
/// Returns the character at position <tt>pos</tt> from the
31108-
/// matched text. It is equivalent to YyText[pos], but faster
31109-
/// </summary>
31110-
/// <param name="pos">the position of the character to fetch. A value from 0 to YyLength()-1.</param>
31111-
/// <returns>the character at position pos</returns>
31112-
private char YyCharAt(int pos)
31113-
{
31114-
return zzBuffer[zzStartRead + pos];
31115-
}
31107+
// LUCENENET: commented out unused method
31108+
// /// <summary>
31109+
// /// Returns the character at position <tt>pos</tt> from the
31110+
// /// matched text. It is equivalent to YyText[pos], but faster
31111+
// /// </summary>
31112+
// /// <param name="pos">the position of the character to fetch. A value from 0 to YyLength()-1.</param>
31113+
// /// <returns>the character at position pos</returns>
31114+
// private char YyCharAt(int pos)
31115+
// {
31116+
// return zzBuffer[zzStartRead + pos];
31117+
// }
3111631118

3111731119

3111831120
/// <summary>

0 commit comments

Comments
 (0)