Commit 03d32b5d authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Removed unused code

parent a64d0815
Pipeline #2334 passed with stages
in 2 minutes and 31 seconds
......@@ -140,25 +140,6 @@ public class NodeDAO {
return Optional.of(node);
}
public List<String> listNodeChildren(String path) {
String sql = "SELECT n.name\n"
+ "FROM node n\n"
+ "WHERE n.path ~ ('*.' || id_from_vos_path(?) || '.*{1}')::lquery\n"
+ "ORDER BY n.path";
List<String> childrenNames = jdbcTemplate.query(conn -> {
PreparedStatement ps = conn.prepareStatement(sql);
int i = 0;
ps.setString(++i, path);
return ps;
}, (row, index) -> {
return row.getString("name");
});
return childrenNames;
}
public Node setNode(Node newNode) {
return setNode(newNode, false);
}
......
......@@ -100,16 +100,6 @@ public class NodeDAOTest {
assertEquals(bTime, NodeProperties.getNodePropertyByURI(root.getNodes().get(0), NodeProperties.DATE_URI));
}
@Test
public void testListNodeChildren() {
assertTrue(dao.listNodeChildren("/test4").isEmpty());
List<String> children = dao.listNodeChildren("/test2");
assertFalse(children.isEmpty());
assertTrue(children.size() == 2);
assertTrue(children.containsAll(List.of("f4", "f5")));
}
@Test
public void testGetQuotaAndMD5() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment