Skip to content

Commit c8fa680

Browse files
author
Petr Sramek
committed
removed PolylineReader and all dependencies
1 parent e8786cb commit c8fa680

File tree

4 files changed

+0
-152
lines changed

4 files changed

+0
-152
lines changed

benchmarks/PolylineAlgorithm.Benchmarks/PolylineDecoderBenchmark.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,4 @@ public void PolylineDecoder_Decode_FromMemory() {
8989
.Decode(StringValue)
9090
.Consume(_consumer);
9191
}
92-
93-
/// <summary>
94-
/// Benchmarks the decoding of a polyline from read-only memory.
95-
/// </summary>
96-
[Benchmark]
97-
public void PolylineReader_ReadToEnd_Local() {
98-
PolylineReader reader = new(StringValue);
99-
100-
var result = ReadToEnd(reader);
101-
102-
result
103-
.Consume(_consumer);
104-
105-
static IEnumerable<Coordinate> ReadToEnd(PolylineReader reader) {
106-
var result = new List<Coordinate>();
107-
108-
while (reader.Read()) {
109-
result.Add(new(reader.Latitude, reader.Longitude));
110-
}
111-
112-
return result;
113-
}
114-
}
11592
}

benchmarks/PolylineAlgorithm.Comparison.Benchmarks/PolylineDecoderBenchmark.cs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -106,27 +106,4 @@ public void PolylineUtility_Decode() {
106106
.Decode(StringValue)
107107
.Consume(_consumer);
108108
}
109-
110-
/// <summary>
111-
/// Benchmarks the decoding of a polyline from read-only memory.
112-
/// </summary>
113-
[Benchmark]
114-
public void PolylineReader_ReadToEnd() {
115-
PolylineReader reader = new(StringValue);
116-
117-
var result = ReadToEnd(ref reader);
118-
119-
result
120-
.Consume(_consumer);
121-
122-
static IEnumerable<Coordinate> ReadToEnd(ref PolylineReader reader) {
123-
var result = new List<Coordinate>();
124-
125-
while (reader.Read()) {
126-
result.Add(new(reader.Latitude, reader.Longitude));
127-
}
128-
129-
return result;
130-
}
131-
}
132109
}

src/PolylineAlgorithm/PolylineReader.cs

Lines changed: 0 additions & 76 deletions
This file was deleted.

tests/PolylineAlgorithm.Tests/PolylineReaderTests.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)