diff --git a/dmp-backend/web/src/main/java/eu/eudat/logic/proxy/config/configloaders/DefaultConfigLoader.java b/dmp-backend/web/src/main/java/eu/eudat/logic/proxy/config/configloaders/DefaultConfigLoader.java index ee196de25..4cf992a80 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/logic/proxy/config/configloaders/DefaultConfigLoader.java +++ b/dmp-backend/web/src/main/java/eu/eudat/logic/proxy/config/configloaders/DefaultConfigLoader.java @@ -37,7 +37,6 @@ public class DefaultConfigLoader implements ConfigLoader { private static final ObjectMapper mapper = new ObjectMapper(); private ExternalUrls externalUrls; - private List rdaProperties; private List schematics; private XWPFDocument document; private XWPFDocument datasetDocument; @@ -67,26 +66,6 @@ public class DefaultConfigLoader implements ConfigLoader { } } - private void setRdaProperties() { - String filePath = environment.getProperty("configuration.rda"); - logger.info("Loaded also config file: " + filePath); - BufferedReader reader; - List rdaList = new LinkedList<>(); - try { - reader = new BufferedReader(new InputStreamReader(getStreamFromPath(filePath))); - String line = reader.readLine(); - while (line != null) { - rdaList.add(line); - line = reader.readLine(); - } - reader.close(); - } catch (IOException | NullPointerException e) { - logger.error(e.getMessage(), e); - } - - rdaProperties = rdaList; - } - private void setSchematics() { String filePath = environment.getProperty("configuration.schematics"); logger.info("Loaded also config file: " + filePath); @@ -187,14 +166,6 @@ public class DefaultConfigLoader implements ConfigLoader { return externalUrls; } - public List getRdaProperties() { - if (rdaProperties == null) { - rdaProperties = new ArrayList<>(); - this.setRdaProperties(); - } - return rdaProperties; - } - public List getSchematics() { if (schematics == null) { schematics = new ArrayList<>();