Skip to content

Commit 59ec3c7

Browse files
committed
Minor Cleaup: Removed unnecessary code.
1 parent 408997c commit 59ec3c7

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Algorithms/Numeric/GreatestCommonDivisor.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ public static uint FindGCD(uint a, uint b)
1919
return a;
2020

2121
uint _a = a, _b = b;
22-
23-
uint q = _a / _b;
2422
uint r = _a % _b;
2523

2624
while(r != 0)

MainProgram/AlgorithmsTests/GraphsBellmanFordShortestPaths.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static void DoTest()
7979
{
8080
BellmanFord = new BellmanFordShortestPaths<DirectedWeightedSparseGraph<string>, string>(graph, "s");
8181
}
82-
catch(Exception ex)
82+
catch(Exception)
8383
{
8484
status = graph.RemoveEdge("y", "t");
8585
//Debug.Assert(status == true, "Error! Edge was not deleted.");
@@ -147,7 +147,7 @@ public static void DoTest()
147147
{
148148
BellmanFord = new BellmanFordShortestPaths<DirectedWeightedSparseGraph<string>, string>(graph, "b");
149149
}
150-
catch (Exception ex)
150+
catch (Exception)
151151
{
152152
status = graph.RemoveEdge("c", "a");
153153
//Debug.Assert(status == true, "Error! Edge was not deleted.");

MainProgram/DataStructuresTests/CliqueGraphTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ public static void DoTest()
5757
MakeGraph(compareGraph);
5858

5959
testGraph = new CliqueGraph<ComparableTuple>(compareGraph);
60-
ICollection<ComparableTuple> component = testGraph.GetConnectedComponent(new ComparableTuple(0, 0));
61-
62-
DataStructures.Lists.DLinkedList<ComparableTuple> neighbor = testGraph.Neighbours(new ComparableTuple(0, 0));
60+
// ICollection<ComparableTuple> component = testGraph.GetConnectedComponent(new ComparableTuple(0, 0));
61+
// DataStructures.Lists.DLinkedList<ComparableTuple> neighbor = testGraph.Neighbours(new ComparableTuple(0, 0));
6362

6463
testGraph.RemoveEdge(new ComparableTuple(0, 0), new ComparableTuple(1, 0));
6564

0 commit comments

Comments
 (0)