Require Complete
IDE0060
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
using log4net;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Adaptation.FileHandlers.Stratus;
|
||||
@ -18,47 +16,6 @@ public class Footer
|
||||
public string MeanThickness { get; }
|
||||
public string StdDev { get; }
|
||||
|
||||
private static string GetBefore(string text, int[] i, string search, bool trim)
|
||||
{
|
||||
string str;
|
||||
string before;
|
||||
if (trim)
|
||||
before = Header.GetBefore(text, i, search);
|
||||
else
|
||||
{
|
||||
int num = text.IndexOf(search, i[0]);
|
||||
if (num <= -1)
|
||||
{
|
||||
str = text.Substring(i[0]);
|
||||
i[0] = text.Length;
|
||||
before = str;
|
||||
}
|
||||
else
|
||||
{
|
||||
str = text.Substring(i[0], num - i[0]);
|
||||
i[0] = num + search.Length;
|
||||
before = str;
|
||||
}
|
||||
}
|
||||
return before;
|
||||
}
|
||||
|
||||
private static string GetToEOL(string text, int[] i, bool trim)
|
||||
{
|
||||
string str;
|
||||
if (text.IndexOf("\n", i[0]) > -1)
|
||||
str = !trim ? GetBefore(text, i, "\n", false) : Header.GetToEOL(text, i);
|
||||
else
|
||||
str = !trim ? GetBefore(text, i, Environment.NewLine, false) : Header.GetToEOL(text, i);
|
||||
return str;
|
||||
}
|
||||
|
||||
private static bool IsBlankLine(string text, int[] i)
|
||||
{
|
||||
int num = text.IndexOf("\n", i[0]);
|
||||
return Wafer.IsNullOrWhiteSpace(num > -1 ? text.Substring(i[0], num - i[0]) : text.Substring(i[0]));
|
||||
}
|
||||
|
||||
internal static Footer? Get(Constant constant, ReadOnlyCollection<string> groups)
|
||||
{
|
||||
Footer? result;
|
||||
@ -80,12 +37,6 @@ public class Footer
|
||||
if (stdDev.EndsWith(","))
|
||||
stdDev = stdDev.Remove(stdDev.Length - 1, 1);
|
||||
}
|
||||
// if (PeekNextLine(groupText, j).Contains(constant.Cassette))
|
||||
// _ = Header.GetToEOL(groupText, j);
|
||||
// if (PeekNextLine(groupText, j).Contains(constant.Cassette))
|
||||
// _ = Header.GetToEOL(groupText, j);
|
||||
// if (PeekNextLine(groupText, j).Contains("Process failed"))
|
||||
// _ = Header.GetToEOL(groupText, j);
|
||||
result = new(meanThickness: meanThickness,
|
||||
stdDev: stdDev);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user