Skip to content

Commit

Permalink
gs-reactor: Delete unused SimpleWebAppConfig constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
fducroquet committed Aug 24, 2016
1 parent 8e5face commit 1168cc5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class CarColorApp extends GSApp implements SelectionDefaults {

public static void main(String[] mainArgs) {
ApplicationServer.sartSimpleGenericApp(mainArgs, CarColorApp.class, "/cars");
ApplicationServer.startSimpleGenericApp(mainArgs, CarColorApp.class, "/cars");
}

public CarColorApp(Root engine) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class AppHtml extends GSApp implements SelectionDefaults {

public static void main(String[] mainArgs) {
ApplicationServer.sartSimpleGenericApp(mainArgs, AppHtml.class, "/example-reactor");
ApplicationServer.startSimpleGenericApp(mainArgs, AppHtml.class, "/example-reactor");
}

public AppHtml(Root engine) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.genericsystem.common.GSBuffer;
import org.genericsystem.common.Root;
import org.genericsystem.reactor.HtmlDomNode;
import org.genericsystem.reactor.Model;
import org.genericsystem.reactor.ViewContext.RootViewContext;
import org.genericsystem.reactor.appserver.WebAppsConfig.SimpleWebAppConfig;
import org.genericsystem.reactor.gs.GSApp;
Expand Down Expand Up @@ -59,11 +58,7 @@ public ApplicationServer(WebAppsConfig options) {
}
}

public static void sartSimpleWebApp(String[] mainArgs, Class<? extends GSApp> htmlAppClass, Class<? extends Model> modelClass, String homePersistentDirectoryPath) {
new ApplicationServer(new SimpleWebAppConfig(mainArgs, htmlAppClass, modelClass, homePersistentDirectoryPath)).start();
}

public static void sartSimpleGenericApp(String[] mainArgs, Class<? extends GSApp> htmlAppClass, String homePersistentDirectoryPath) {
public static void startSimpleGenericApp(String[] mainArgs, Class<? extends GSApp> htmlAppClass, String homePersistentDirectoryPath) {
new ApplicationServer(new SimpleWebAppConfig(mainArgs, htmlAppClass, homePersistentDirectoryPath)).start();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ public SimpleWebAppConfig(String[] mainArgs, Class<? extends GSApp> htmlAppClass
super(mainArgs);
addApplication("/", htmlAppClass, RootModel.class, Engine.class, System.getenv("HOME") + "/genericsystem/" + homePersistentDirectoryPath);
}

public SimpleWebAppConfig(String[] mainArgs, Class<? extends GSApp> htmlAppClass, Class<? extends Model> modelClass, String homePersistentDirectoryPath) {
super(mainArgs);
addApplication("/", htmlAppClass, modelClass, Engine.class, System.getenv("HOME") + "/genericsystem/" + homePersistentDirectoryPath);
}
}

public String getRootId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TodoApp extends GSApp {
public static final String COMPLETED_TODOS = "completedTodos";

public static void main(String[] mainArgs) {
ApplicationServer.sartSimpleGenericApp(mainArgs, TodoApp.class, "/todo/");
ApplicationServer.startSimpleGenericApp(mainArgs, TodoApp.class, "/todo/");
}

private Property<Predicate<Generic>> getModeProperty(Model model) {
Expand Down

0 comments on commit 1168cc5

Please sign in to comment.