Repository: incubator-gearpump
Updated Branches:
  refs/heads/master 7bc5fba5b -> cbf59fb77


[GEARPUMP-230] Removed unused code from AppMasterService

Hello,

Seems there is some unused code in AppMasterService. This pull request removes 
it.

Regards
Christoph

Author: Christoph Seifert <[email protected]>

Closes #103 from christophse/fix.


Project: http://git-wip-us.apache.org/repos/asf/incubator-gearpump/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-gearpump/commit/cbf59fb7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-gearpump/tree/cbf59fb7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-gearpump/diff/cbf59fb7

Branch: refs/heads/master
Commit: cbf59fb77834914116657a135b30899b91a7408d
Parents: 7bc5fba
Author: Christoph Seifert <[email protected]>
Authored: Wed Nov 2 20:01:07 2016 +0800
Committer: manuzhang <[email protected]>
Committed: Wed Nov 2 20:01:07 2016 +0800

----------------------------------------------------------------------
 .../org/apache/gearpump/services/AppMasterService.scala   | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-gearpump/blob/cbf59fb7/services/jvm/src/main/scala/org/apache/gearpump/services/AppMasterService.scala
----------------------------------------------------------------------
diff --git 
a/services/jvm/src/main/scala/org/apache/gearpump/services/AppMasterService.scala
 
b/services/jvm/src/main/scala/org/apache/gearpump/services/AppMasterService.scala
index b217363..3088a39 100644
--- 
a/services/jvm/src/main/scala/org/apache/gearpump/services/AppMasterService.scala
+++ 
b/services/jvm/src/main/scala/org/apache/gearpump/services/AppMasterService.scala
@@ -196,14 +196,6 @@ class AppMasterService(val master: ActorRef,
       } ~
       pathEnd {
         delete {
-          val writer = (result: ShutdownApplicationResult) => {
-            val output = if (result.appId.isSuccess) {
-              Map("status" -> "success", "info" -> null)
-            } else {
-              Map("status" -> "fail", "info" -> 
result.appId.failed.get.toString)
-            }
-            write(output)
-          }
           onComplete(askActor[ShutdownApplicationResult](master, 
ShutdownApplication(appId))) {
             case Success(result) =>
               val output = if (result.appId.isSuccess) {
@@ -223,4 +215,4 @@ class AppMasterService(val master: ActorRef,
 
 object AppMasterService {
   case class Status(success: Boolean, reason: String = null)
-}
\ No newline at end of file
+}

Reply via email to