From 9a76def6add6d411fc3b7ea540de4a22f69f52f2 Mon Sep 17 00:00:00 2001 From: Christian Banse Date: Tue, 17 Dec 2024 16:04:08 +0100 Subject: [PATCH] Cleanup --- .../kotlin/de/fraunhofer/aisec/cpg/graph/concepts/Concept.kt | 1 - .../main/kotlin/de/fraunhofer/aisec/cpg/persistence/Neo4J.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/concepts/Concept.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/concepts/Concept.kt index d589f035d5..8d7aaa42b4 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/concepts/Concept.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/concepts/Concept.kt @@ -26,7 +26,6 @@ package de.fraunhofer.aisec.cpg.graph.concepts import de.fraunhofer.aisec.cpg.graph.OverlayNode -import org.neo4j.ogm.annotation.Relationship /** * Represents a new concept added to the CPG. This is intended for modelling "concepts" like diff --git a/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg/persistence/Neo4J.kt b/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg/persistence/Neo4J.kt index d810c56fb5..2e25a93e9f 100644 --- a/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg/persistence/Neo4J.kt +++ b/cpg-neo4j/src/main/kotlin/de/fraunhofer/aisec/cpg/persistence/Neo4J.kt @@ -86,7 +86,7 @@ fun TranslationResult.persist() { val astNodes = this@persist.nodes val connected = astNodes.flatMap { it.connectedNodes }.toSet() - val nodes = (astNodes + connected + this.additionalNodes).distinct() + val nodes = (astNodes + connected).distinct() log.info( "Persisting {} nodes: AST nodes ({}), other nodes ({})",