Skip to content

Commit

Permalink
refactor: remove unwanted method
Browse files Browse the repository at this point in the history
  • Loading branch information
varadeth committed Jan 20, 2023
1 parent 5c2481b commit 63cbd67
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public class VertexWriter {
private DatabaseProvider databaseProvider;
private String parentOSid;
private static final String EMPTY_STR = "";
private static final String DID_SEPERATOR = ":";
private Logger logger = LoggerFactory.getLogger(VertexWriter.class);

public VertexWriter(Graph graph, DatabaseProvider databaseProvider, String uuidPropertyName) {
Expand Down Expand Up @@ -233,17 +232,6 @@ private Vertex processNode(String label, JsonNode jsonObject) {
return vertex;
}

private void updateParentForReferencingNode(Vertex vertex, Map.Entry<String, JsonNode> entry, JsonNode entryValue) {
String[] dids = entryValue.asText().split(DID_SEPERATOR);
String osid = RecordIdentifier.parse(dids[2]).getUuid();
Iterator<Vertex> vertexIterator = graph.traversal().clone().V().hasLabel(dids[1]).has(uuidPropertyName, osid);
while(vertexIterator.hasNext()) {
Vertex dependent = vertexIterator.next();
addEdge(entry.getKey(), vertex, dependent);
vertex.property(RefLabelHelper.getLabel(entry.getKey(), uuidPropertyName), osid);
}
}

/**
* Adds an edge between two vertices
*
Expand Down

0 comments on commit 63cbd67

Please sign in to comment.