Skip to content

Commit 616df54

Browse files
committed
remove obsolete code
1 parent 9e17684 commit 616df54

23 files changed

+2
-835
lines changed

src/Dijkstra.NET.Benchmark/BenchmarkIt.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,28 @@ namespace Dijkstra.NET.Benchmark
1111
[MemoryDiagnoser]
1212
public class BenchmarkIt
1313
{
14-
private readonly DijkstraBenchmarkBase _dijkstra;
15-
private readonly DijkstraBenchmarkBase _bfs;
16-
1714
public BenchmarkIt()
1815
{
19-
_dijkstra = new DijkstraBenchmark();
20-
_bfs = new BfsParallelBenchmark();
2116
}
2217

2318
[GlobalSetup]
2419
public void Initialise()
2520
{
2621
Console.WriteLine("--- Global Setup ---");
27-
28-
_dijkstra.Initialise();
2922
}
3023

3124
[IterationSetup]
3225
public void IterationSetup()
3326
{
3427
Console.WriteLine("--- Iteration Setup ---");
35-
36-
_dijkstra.Setup();
3728
}
3829

3930
[Benchmark(Baseline = true)]
40-
public int DijkstraBenchmark()
41-
{
42-
var result = _dijkstra.GetPath();
43-
44-
return result.GetPath().Count();
45-
}
46-
47-
[Benchmark]
4831
public int DijkstraExtensionBenchmark()
4932
{
5033
var result = DijkstraBenchmarkBase.Graph.Dijkstra(DijkstraBenchmarkBase.From, DijkstraBenchmarkBase.To);
5134

5235
return result.GetPath().Count();
5336
}
54-
55-
[Benchmark]
56-
public int BfsBenchmark()
57-
{
58-
var result = _bfs.GetPath();
59-
60-
return result.GetPath().Count();
61-
}
6237
}
6338
}

src/Dijkstra.NET.Benchmark/BfsParallelBenchmark.cs

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

src/Dijkstra.NET.Benchmark/Dijkstra.NET.Benchmark.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@
137137
</ItemGroup>
138138
<ItemGroup>
139139
<Compile Include="BenchmarkIt.cs" />
140-
<Compile Include="BfsParallelBenchmark.cs" />
141-
<Compile Include="DijkstraBenchmark.cs" />
142140
<Compile Include="DijkstraBenchmarkBase.cs" />
143141
<Compile Include="Program.cs" />
144142
<Compile Include="Properties\AssemblyInfo.cs" />

src/Dijkstra.NET.Benchmark/DijkstraBenchmark.cs

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

src/Dijkstra.NET.Benchmark/DijkstraBenchmarkBase.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,5 @@ public void Initialise()
4444
From = 0;
4545
To = Nodes - 1;
4646
}
47-
48-
public void Setup()
49-
{
50-
Graph.Reset();
51-
}
52-
53-
public abstract IShortestPathResult GetPath();
5447
}
5548
}

src/Dijkstra.NET.Tests/BfsParallelTest.cs

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

src/Dijkstra.NET.Tests/DijkstraTest.cs

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

src/Dijkstra.NET.Tests/TheShortestPathFixture.cs

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

0 commit comments

Comments
 (0)