From a3069e4415e651b93ca597d2503c4792b16f9194 Mon Sep 17 00:00:00 2001 From: Youngsoo Choi Date: Tue, 10 Jan 2017 14:52:26 +0900 Subject: [PATCH] Remove unused varialbe is_on_terminate_called 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 --- runtime/browser/runtime.cc | 2 -- runtime/browser/runtime.h | 1 - runtime/browser/web_application.cc | 1 - 3 files changed, 4 deletions(-) diff --git a/runtime/browser/runtime.cc b/runtime/browser/runtime.cc index bba1168..4298837 100644 --- a/runtime/browser/runtime.cc +++ b/runtime/browser/runtime.cc @@ -32,8 +32,6 @@ namespace runtime { -bool Runtime::is_on_terminate_called = false; - Runtime::~Runtime() { } diff --git a/runtime/browser/runtime.h b/runtime/browser/runtime.h index b4f1029..00dea07 100755 --- a/runtime/browser/runtime.h +++ b/runtime/browser/runtime.h @@ -32,7 +32,6 @@ class Runtime { virtual int Exec(int argc, char* argv[]) = 0; - static bool is_on_terminate_called; static std::unique_ptr MakeRuntime( common::ApplicationData* app_data); diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 68143a8..e0ef6a5 100755 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -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); -- 2.7.4