Skip to content

Commit 45a4f99

Browse files
akshaysonvaneaebadirad
authored andcommitted
Code cleanup (#1697)
1 parent 116c907 commit 45a4f99

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/impl/HubConfigImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ public HubConfigImpl() {
188188

189189
public void createProject(String projectDirString) {
190190
hubProject.createProject(projectDirString);
191-
// initializeApplicationConfigurations();
192191
}
193192

194193
public String getHost() { return appConfig.getHost(); }
@@ -1620,13 +1619,6 @@ public DatabaseClient newModulesDbClient() {
16201619
return this.DHFVersion;
16211620
}
16221621

1623-
1624-
/* this method takes care of setting app config and other non-injected dependencies */
1625-
public void initializeApplicationConfigurations() {
1626-
hydrateAppConfigs(environment);
1627-
hydrateConfigs();
1628-
}
1629-
16301622
private Map<String, String> getCustomTokens() {
16311623
AppConfig appConfig = getAppConfig();
16321624

quick-start/src/main/java/com/marklogic/quickstart/web/ProjectsController.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,7 @@ public Project initializeProject(@PathVariable int projectId, @RequestBody JsonN
9898
om.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
9999
try {
100100
hubConfig = om.readerForUpdating(hubConfig).readValue(hubConfigDelta);
101-
102-
// TODO: Is this needed anymore?
103-
// AppConfig appConfig = this.hubConfig.getAppConfig();
104-
// if (hubConfigDelta.get("host") != null) {
105-
// appConfig.setHost(hubConfigDelta.get("host").asText());
106-
// }
107-
// if (hubConfigDelta.get("name") != null) {
108-
// appConfig.setName(hubConfigDelta.get("name").asText());
109-
// }
110-
111-
this.hubConfig.createProject(project.path);
101+
hubConfig.createProject(project.path);
112102
dataHub.initProject();
113103
return project;
114104
} catch (Exception e) {

0 commit comments

Comments
 (0)