@@ -16,8 +16,6 @@ public class LogfileReader : IAutoLogLineColumnizerCallback, IDisposable
1616
1717 private static readonly ILogger _logger = LogManager . GetCurrentClassLogger ( ) ;
1818
19- private readonly GetLogLineFx _logLineFx ;
20-
2119 private readonly string _fileName ;
2220 private readonly int _max_buffers ;
2321 private readonly int _maxLinesPerBuffer ;
@@ -68,7 +66,6 @@ public LogfileReader (string fileName, EncodingOptions encodingOptions, bool mul
6866 _maxLinesPerBuffer = linesPerBuffer ;
6967 _multiFileOptions = multiFileOptions ;
7068 _pluginRegistry = pluginRegistry ;
71- _logLineFx = GetLogLineInternal ;
7269 _disposed = false ;
7370
7471 InitLruBuffers ( ) ;
@@ -108,7 +105,6 @@ public LogfileReader (string[] fileNames, EncodingOptions encodingOptions, int b
108105 _maxLinesPerBuffer = linesPerBuffer ;
109106 _multiFileOptions = multiFileOptions ;
110107 _pluginRegistry = pluginRegistry ;
111- _logLineFx = GetLogLineInternal ;
112108 _disposed = false ;
113109
114110 InitLruBuffers ( ) ;
@@ -127,12 +123,6 @@ public LogfileReader (string[] fileNames, EncodingOptions encodingOptions, int b
127123
128124 #endregion
129125
130- #region Delegates
131-
132- private delegate Task < ILogLine > GetLogLineFx ( int lineNum ) ;
133-
134- #endregion
135-
136126 #region Events
137127
138128 public event EventHandler < LogEventArgs > FileSizeChanged ;
@@ -422,7 +412,7 @@ public async Task<ILogLine> GetLogLineWithWait (int lineNum)
422412
423413 if ( ! _isFastFailOnGetLogLine )
424414 {
425- var task = Task . Run ( ( ) => _logLineFx ( lineNum ) ) ;
415+ var task = Task . Run ( ( ) => GetLogLineInternal ( lineNum ) ) ;
426416 if ( task . Wait ( WAIT_TIME ) )
427417 {
428418 result = task . Result ;
@@ -440,7 +430,7 @@ public async Task<ILogLine> GetLogLineWithWait (int lineNum)
440430 if ( ! _isFailModeCheckCallPending )
441431 {
442432 _isFailModeCheckCallPending = true ;
443- var logLine = await _logLineFx ( lineNum ) ;
433+ var logLine = await GetLogLineInternal ( lineNum ) ;
444434 GetLineFinishedCallback ( logLine ) ;
445435 }
446436 }
0 commit comments