Skip to content

Commit ce31faf

Browse files
committed
rolled back contrsuction addition fo rPolylineEncoder
1 parent 1ea9242 commit ce31faf

2 files changed

Lines changed: 2 additions & 23 deletions

File tree

src/PolylineAlgorithm.Abstraction/PolylineEncoder.cs

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,10 @@ namespace PolylineAlgorithm.Abstraction;
1818
/// Implements the <see cref="IPolylineEncoder{TCoordinate, TPolyline}"/> interface.
1919
/// </summary>
2020
public abstract class PolylineEncoder<TCoordinate, TPolyline> : IPolylineEncoder<TCoordinate, TPolyline> {
21-
/// <summary>
22-
/// Initializes a new instance of the <see cref="PolylineEncoder{TCoordinate, TPolyline}"/> class
23-
/// using the default <see cref="PolylineEncodingOptions{TCoordinate}"/>.
24-
/// </summary>
25-
public PolylineEncoder()
26-
: this(new PolylineEncodingOptions<TCoordinate>()) { }
27-
28-
/// <summary>
29-
/// Initializes a new instance of the <see cref="PolylineEncoder{TCoordinate, TPolyline}"/> class
30-
/// with the specified <see cref="PolylineEncodingOptions{TCoordinate}"/>.
31-
/// </summary>
32-
/// <param name="options">
33-
/// The <see cref="PolylineEncodingOptions{TCoordinate}"/> to use for encoding operations.
34-
/// </param>
35-
/// <exception cref="ArgumentNullException">
36-
/// Thrown when <paramref name="options"/> is <see langword="null"/>.
37-
/// </exception>
38-
public PolylineEncoder(PolylineEncodingOptions<TCoordinate> options) {
39-
Options = options ?? throw new ArgumentNullException(nameof(options));
40-
}
41-
4221
/// <summary>
4322
/// Gets the encoding options used by this polyline encoder.
4423
/// </summary>
45-
public PolylineEncodingOptions<TCoordinate> Options { get; }
24+
public abstract PolylineEncodingOptions<TCoordinate> Options { get; }
4625

4726
/// <summary>
4827
/// Encodes a collection of <typeparamref name="TCoordinate"/> instances into an encoded <typeparamref name="TPolyline"/> string.

tests/PolylineAlgorithm.Tests/PolylineDecoderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace PolylineAlgorithm.Tests;
1414
/// </summary>
1515
[TestClass]
1616
public class PolylineDecoderTest {
17-
public static IEnumerable<object[]> CoordinateCount => [[1], [10], [100], [1_000], [10_000], [100_000], [1_000_000]];
17+
public static IEnumerable<object[]> CoordinateCount => [[1], [10], [100], [1_000]];
1818

1919
/// <summary>
2020
/// The instance of the <see cref="PolylineDecoder"/> used for testing.

0 commit comments

Comments
 (0)