Remove unused varialbe is_on_terminate_called 51/109351/1
authorYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jan 2017 05:52:26 +0000 (14:52 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jan 2017 05:52:26 +0000 (14:52 +0900)
Since the termination sequence was unified using context session,
the variable is_on_terminate_called hasn't been used.

Bug: http://suprem.sec.samsung.net/jira/browse/TWF-2769

Change-Id: Ie30e501d1c9ed1934c9cea560922c69efe79b810
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
runtime/browser/runtime.cc
runtime/browser/runtime.h
runtime/browser/web_application.cc

index bba11689902e739c079dd54ca1bdc0e119519518..4298837e84a3e5b461cd6c5ced7bcff5b99590cc 100644 (file)
@@ -32,8 +32,6 @@
 
 namespace runtime {
 
-bool Runtime::is_on_terminate_called = false;
-
 Runtime::~Runtime() {
 }
 
index b4f10291c2ee4eccdfad9639df03c7e91238920c..00dea07f58221e40815cf31b5f582701ce377fe9 100755 (executable)
@@ -32,7 +32,6 @@ class Runtime {
 
   virtual int Exec(int argc, char* argv[]) = 0;
 
-  static bool is_on_terminate_called;
   static std::unique_ptr<Runtime> MakeRuntime(
     common::ApplicationData* app_data);
 
index 68143a8253b4b69fe6169cd77cf4fd8a7217ce1d..e0ef6a51dc4467eb1482a242137066f400ba293d 100755 (executable)
@@ -663,7 +663,6 @@ void WebApplication::ClosePageFromOnTerminate() {
   LOGGER(DEBUG);
   auto it = view_stack_.begin();
   if (it != view_stack_.end()) {
-    runtime::Runtime::is_on_terminate_called = true;
     for (; it != view_stack_.end(); ++it) {
       (*it)->ReplyToJavascriptDialog();
       view_stack_.front()->SetVisibility(false);