summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-23 20:37:13 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-23 20:37:13 +0000
commitf52fb7021299ae5a49121ea94774656d88b3fb1a (patch)
treeff78fd4cee0ab648af7af3a3023e55bcf09ad13d
parent7259c048b9a3f0161fafcbe19c488ff0767de013 (diff)
downloadpdfium-f52fb7021299ae5a49121ea94774656d88b3fb1a.tar.xz
Remove JSMessage::kRunSuccess and its string
It is unused. Apparently, success is not possible ... Change-Id: If8fd079484af5f7c232a4dceedb4dc9a7b14a230 Reviewed-on: https://pdfium-review.googlesource.com/c/44532 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--fxjs/js_resources.cpp2
-rw-r--r--fxjs/js_resources.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/fxjs/js_resources.cpp b/fxjs/js_resources.cpp
index 5df1460cbc..29edf895a9 100644
--- a/fxjs/js_resources.cpp
+++ b/fxjs/js_resources.cpp
@@ -31,8 +31,6 @@ WideString JSGetStringFromID(JSMessage msg) {
return L"System is busy.";
case JSMessage::kDuplicateEventError:
return L"Duplicate formfield event found.";
- case JSMessage::kRunSuccess:
- return L"Script ran successfully.";
case JSMessage::kSecondParamNotDateError:
return L"The second parameter can't be converted to a Date.";
case JSMessage::kSecondParamInvalidDateError:
diff --git a/fxjs/js_resources.h b/fxjs/js_resources.h
index 10bbcb8fed..064fd1609c 100644
--- a/fxjs/js_resources.h
+++ b/fxjs/js_resources.h
@@ -10,8 +10,7 @@
#include "core/fxcrt/widestring.h"
enum class JSMessage {
- kRunSuccess = 0,
- kAlert,
+ kAlert = 1,
kParamError,
kInvalidInputError,
kParamTooLongError,