summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/cjs_context.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-07-21 13:29:55 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-21 13:29:55 -0700
commit1d3348ce0092d6d2a40de5f8433c0d0c16a1e12e (patch)
tree9d4f456e15a533fb49b2a9bdc6a38e47ad1210dc /fpdfsdk/javascript/cjs_context.cpp
parent9ca2b09126b80c03655f0eee1f02e1b2d0a18230 (diff)
downloadpdfium-1d3348ce0092d6d2a40de5f8433c0d0c16a1e12e.tar.xz
Remove EnableMessageBox() / IsMessageBoxEnabled()
It's always enabled. Also inline FXJS_MsgBox since it only has one caller. Review-Url: https://codereview.chromium.org/2167343002
Diffstat (limited to 'fpdfsdk/javascript/cjs_context.cpp')
-rw-r--r--fpdfsdk/javascript/cjs_context.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/fpdfsdk/javascript/cjs_context.cpp b/fpdfsdk/javascript/cjs_context.cpp
index 3833b166b6..406339d7af 100644
--- a/fpdfsdk/javascript/cjs_context.cpp
+++ b/fpdfsdk/javascript/cjs_context.cpp
@@ -11,7 +11,7 @@
#include "fpdfsdk/javascript/resource.h"
CJS_Context::CJS_Context(CJS_Runtime* pRuntime)
- : m_pRuntime(pRuntime), m_bBusy(FALSE), m_bMsgBoxEnable(TRUE) {
+ : m_pRuntime(pRuntime), m_bBusy(FALSE) {
m_pEventHandler = new CJS_EventHandler(this);
}
@@ -268,10 +268,6 @@ void CJS_Context::OnExternal_Exec() {
m_pEventHandler->OnExternal_Exec();
}
-void CJS_Context::EnableMessageBox(FX_BOOL bEnable) {
- m_bMsgBoxEnable = bEnable;
-}
-
void CJS_Context::OnBatchExec(CPDFSDK_Document* pTarget) {
m_pEventHandler->OnBatchExec(pTarget);
}