remove invalid constructor

This commit is contained in:
Eliot Jones 2023-03-17 22:32:22 +01:00
parent ec5b3b551a
commit a5c91f00d9

View File

@ -11,15 +11,6 @@
private readonly IReadOnlyList<double> rangeArray;
private readonly int startingIndex;
/// <summary>
/// Constructor with an initial range of 0..1.
/// </summary>
public PdfRange()
{
rangeArray = new double[] { 0.0, 1.0 };
startingIndex = 0;
}
/// <summary>
/// Constructor assumes a starting index of 0.
/// </summary>
@ -61,30 +52,18 @@
/// <param name="index">The range index into the array for the start of the range.</param>
public PdfRange(IEnumerable<double> range, int index)
{
rangeArray = range.Select(v => (double)v).ToArray();
rangeArray = range.ToArray();
startingIndex = index;
}
/// <summary>
/// The minimum value of the range.
/// </summary>
public double Min
{
get
{
return rangeArray[startingIndex * 2];
}
}
public double Min => rangeArray[startingIndex * 2];
/// <summary>
/// The maximum value of the range.
/// </summary>
public double Max
{
get
{
return rangeArray[startingIndex * 2 + 1];
}
}
public double Max => rangeArray[startingIndex * 2 + 1];
}
}