Skip to content

Commit cc81c27

Browse files
committed
code cleanup
1 parent 3d4210d commit cc81c27

File tree

7 files changed

+7
-11
lines changed

7 files changed

+7
-11
lines changed

src/PolylineAlgorithm/Abstraction/AbstractPolylineDecoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
namespace PolylineAlgorithm.Abstraction;
77

88
using Microsoft.Extensions.Logging;
9-
using PolylineAlgorithm.Internal.Logging;
9+
using PolylineAlgorithm;
1010
using PolylineAlgorithm.Internal;
11+
using PolylineAlgorithm.Internal.Logging;
1112
using PolylineAlgorithm.Properties;
1213
using System;
13-
using PolylineAlgorithm;
1414

1515
/// <summary>
1616
/// Decodes encoded polyline strings into sequences of geographic coordinates.

src/PolylineAlgorithm/Abstraction/AbstractPolylineEncoder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
namespace PolylineAlgorithm.Abstraction;
77

88
using Microsoft.Extensions.Logging;
9+
using PolylineAlgorithm;
10+
using PolylineAlgorithm.Internal;
911
using PolylineAlgorithm.Internal.Logging;
1012
using PolylineAlgorithm.Properties;
11-
using PolylineAlgorithm.Internal;
1213
using System;
1314
using System.Collections;
1415
using System.Collections.Generic;
1516
using System.Diagnostics;
1617
using System.Runtime.CompilerServices;
17-
using PolylineAlgorithm;
1818

1919
/// <summary>
2020
/// Provides functionality to encode a collection of geographic coordinates into an encoded polyline string.

src/PolylineAlgorithm/Extensions/PolylineDecoderExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace PolylineAlgorithm.Extensions;
99
using PolylineAlgorithm.Abstraction;
1010
using System;
1111
using System.Collections.Generic;
12-
using System.Diagnostics;
1312

1413
/// <summary>
1514
/// Provides extension methods for the <see cref="IPolylineDecoder{TPolyline, TCoordinate}"/> interface to facilitate decoding encoded polylines.

src/PolylineAlgorithm/Extensions/PolylineEncoderExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace PolylineAlgorithm.Extensions;
99
using PolylineAlgorithm.Abstraction;
1010
using System;
1111
using System.Collections.Generic;
12-
using System.Diagnostics;
1312

1413
/// <summary>
1514
/// Provides extension methods for the <see cref="IPolylineEncoder{TCoordinate, TPolyline}"/> interface to facilitate encoding geographic coordinates into polylines.

src/PolylineAlgorithm/PolylineEncoding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
//
55

66
namespace PolylineAlgorithm;
7-
using PolylineAlgorithm.Properties;
87
using PolylineAlgorithm.Internal;
8+
using PolylineAlgorithm.Properties;
99
using System;
1010
using System.Runtime.CompilerServices;
1111

@@ -94,7 +94,7 @@ public static double Denormalize(int value, CoordinateValueType type) {
9494
if (type == CoordinateValueType.None) {
9595
throw new ArgumentOutOfRangeException(nameof(type), string.Format(ExceptionMessageResource.ArgumentCannotBeCoordinateCoordinateValueTypeErrorFormat, type.ToString()));
9696
}
97-
97+
9898
// Validate that the value is finite and within the acceptable range for the specified type.
9999
if (!ValidateValue(value, type)) {
100100
throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(ExceptionMessageResource.ArgumentIsOutOfRangeForSpecifiedType, type.ToString().ToLowerInvariant()));

src/PolylineAlgorithm/PolylineEncodingOptionsBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static PolylineEncodingOptionsBuilder Create() {
3333
/// <returns>
3434
/// A configured <see cref="PolylineEncodingOptions"/> instance.
3535
/// </returns>
36-
public PolylineEncodingOptions Build() {
36+
public PolylineEncodingOptions Build() {
3737
return new PolylineEncodingOptions {
3838
BufferSizeInBytes = _bufferSize,
3939
LoggerFactory = _loggerFactory

tests/PolylineAlgorithm.Tests/PolylineOptionsBuilderTest.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
44
//
55

6-
using PolylineAlgorithm.Tests;
7-
86
namespace PolylineAlgorithm.Tests;
97

108
using Microsoft.Extensions.Logging.Abstractions;

0 commit comments

Comments
 (0)