Skip to content

Commit 77566ba

Browse files
Copilotpetesramek
andauthored
refactor: remove redundant Decode(TPolyline) overload from AbstractPolylineDecoder
IPolylineDecoder already has cancellationToken = default, making the no-token overload unnecessary. Callers can call Decode(polyline) directly via the interface. Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/0ad5e8c4-b82b-4f8c-805d-29afa8c45722 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 0acedcd commit 77566ba

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,6 @@ protected AbstractPolylineDecoder(PolylineEncodingOptions options) {
5454
/// </summary>
5555
public PolylineEncodingOptions Options { get; }
5656

57-
/// <summary>
58-
/// Decodes an encoded <typeparamref name="TPolyline"/> into a sequence of <typeparamref name="TCoordinate"/> instances.
59-
/// </summary>
60-
/// <param name="polyline">
61-
/// The <typeparamref name="TPolyline"/> instance containing the encoded polyline string to decode.
62-
/// </param>
63-
/// <returns>
64-
/// An <see cref="IEnumerable{T}"/> of <typeparamref name="TCoordinate"/> representing the decoded latitude and longitude pairs.
65-
/// </returns>
66-
/// <exception cref="ArgumentNullException">
67-
/// Thrown when <paramref name="polyline"/> is <see langword="null"/>.
68-
/// </exception>
69-
/// <exception cref="ArgumentException">
70-
/// Thrown when <paramref name="polyline"/> is empty.
71-
/// </exception>
72-
/// <exception cref="InvalidPolylineException">
73-
/// Thrown when the polyline format is invalid or malformed at a specific position.
74-
/// </exception>
75-
public IEnumerable<TCoordinate> Decode(TPolyline polyline)
76-
=> Decode(polyline, CancellationToken.None);
77-
7857
/// <summary>
7958
/// Decodes an encoded <typeparamref name="TPolyline"/> into a sequence of <typeparamref name="TCoordinate"/> instances,
8059
/// with support for cancellation.

0 commit comments

Comments
 (0)