aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-graph
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2015-02-17 16:24:28 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2015-02-17 18:56:28 +0100
commit40c0a83d32c1d27b3a9cfe64bff9c24597684035 (patch)
tree83463eba461839eec334d30375f9b83b7a18bd78 /sonar-graph
parent6502e10afdef698a148be3ec8181467bc5fd3d5f (diff)
downloadsonarqube-40c0a83d32c1d27b3a9cfe64bff9c24597684035.tar.gz
sonarqube-40c0a83d32c1d27b3a9cfe64bff9c24597684035.zip
SONAR-6176 Display DSM even when there is no dependency
Diffstat (limited to 'sonar-graph')
-rw-r--r--sonar-graph/src/main/java/org/sonar/graph/Dsm.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/sonar-graph/src/main/java/org/sonar/graph/Dsm.java b/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
index 4d8673d1992..811cad56e3e 100644
--- a/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
+++ b/sonar-graph/src/main/java/org/sonar/graph/Dsm.java
@@ -31,7 +31,6 @@ public class Dsm<V> {
private final DsmCell[][] cells;
private final int dimension;
private final DirectedGraphAccessor<V, ? extends Edge<V>> graph;
- private boolean atLeastOneDependency = false;
public Dsm(DirectedGraphAccessor<V, ? extends Edge<V>> graph, Collection<V> vertices, Set<Edge> feedbackEdges) {
this.graph = graph;
@@ -57,7 +56,6 @@ public class Dsm<V> {
Edge<V> edge = graph.getEdge(from, to);
if (edge != null) {
- atLeastOneDependency = true;
boolean isFeedbackEdge = feedbackEdges.contains(edge);
result[x][y] = new DsmCell(edge, isFeedbackEdge);
}
@@ -171,13 +169,6 @@ public class Dsm<V> {
return cells[x][y];
}
- /**
- * @since 5.0
- */
- public boolean hasAtLeastOneDependency() {
- return atLeastOneDependency;
- }
-
public V[] getVertices() {
V[] verticesCopy = (V[]) new Object[vertices.length];
System.arraycopy(vertices, 0, verticesCopy, 0, vertices.length);