Skip to content

Commit

Permalink
Removes the unused deepInit method
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarCoelho committed Oct 25, 2023
1 parent 4741737 commit 556a0f7
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,6 @@ public void createServiceHelperClass(File serviceFolder, AreaType area, ServiceT
}

method.addMethodCloseStatement();

method = file.addMethodOpenStatement(false, true, StdStrings.PUBLIC, false,
true, null, "deepInit", Arrays.asList(eleFactory), throwsMALException,
"Registers all aspects of this service with the provided element factory and any referenced areas/services.",
null, Arrays.asList(throwsMALException + " If cannot initialise this helper."));
method.addLine("init(elementsRegistry)");
method.addMethodCloseStatement();

file.addClassCloseStatement();
file.flush();
}
Expand Down Expand Up @@ -278,7 +270,7 @@ public void createAreaHelperClass(File areaFolder, AreaType area) throws IOExcep

for (ServiceType service : area.getService()) {
String helperType = generator.createElementType(file, area.getName(), service.getName(), null, service.getName() + "Helper");
String ns = generator.convertToNamespace(helperType + ".deepInit(elementsRegistry)");
String ns = generator.convertToNamespace(helperType + ".init(elementsRegistry)");
method.addMethodWithDependencyStatement(ns, ns, true);
}

Expand Down

0 comments on commit 556a0f7

Please sign in to comment.