Skip to content

Commit 5e47658

Browse files
committed
remove unnecessary code bases and update module.java file.
1 parent f57ba63 commit 5e47658

11 files changed

+1
-456
lines changed

app/Module.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import com.google.inject.AbstractModule;
2-
import java.time.Clock;
3-
4-
import services.ApplicationTimer;
5-
import services.AtomicCounter;
6-
import services.Counter;
72

83
/**
94
* This class is a Guice module that tells Guice how to bind several
@@ -19,13 +14,5 @@ public class Module extends AbstractModule {
1914

2015
@Override
2116
public void configure() {
22-
// Use the system clock as the default implementation of Clock
23-
bind(Clock.class).toInstance(Clock.systemDefaultZone());
24-
// Ask Guice to create an instance of ApplicationTimer when the
25-
// application starts.
26-
bind(ApplicationTimer.class).asEagerSingleton();
27-
// Set AtomicCounter as the implementation for Counter.
28-
bind(Counter.class).to(AtomicCounter.class);
2917
}
30-
3118
}

app/controllers/AsyncController.java

Lines changed: 0 additions & 65 deletions
This file was deleted.

app/controllers/CountController.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

app/controllers/HomeController.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
import play.mvc.*;
44

5-
import views.html.*;
6-
75
/**
86
* This controller contains an action to handle HTTP requests
97
* to the application's home page.
@@ -17,7 +15,6 @@ public class HomeController extends Controller {
1715
* <code>GET</code> request with a path of <code>/</code>.
1816
*/
1917
public Result index() {
20-
return ok(index.render("Your new application is ready."));
18+
return ok("Your new application is ready.");
2119
}
22-
2320
}

app/filters/ExampleFilter.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/services/ApplicationTimer.java

Lines changed: 0 additions & 52 deletions
This file was deleted.

app/services/AtomicCounter.java

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/services/Counter.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/views/index.scala.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/views/main.scala.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)