summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-10-05 20:43:46 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-05 20:43:46 +0000
commit06f3042167126d60184dc3c401e71924cf3b46af (patch)
tree87c5478a50178cf32a9ca761362b83db254a3ebf /fxjs
parent66095ebfb9fe0b522e56753b7d1b997e65b8b219 (diff)
downloadpdfium-06f3042167126d60184dc3c401e71924cf3b46af.tar.xz
Remove SetSaveCalled API
This was meant to be part of a mechanism to alert users that entered data into a PDF form was not going to actually be saved how they would expect. The UI for this is blocked on a bug in V8, and is now being superseded by work to correctly implement saving. BUG=pdfium:953 Change-Id: Id9c85c109a3f6a6b4ee69d35f366006be4dc9c32 Reviewed-on: https://pdfium-review.googlesource.com/c/43552 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_app.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/fxjs/cjs_app.cpp b/fxjs/cjs_app.cpp
index 12bb8ddc84..08d4e4e1c8 100644
--- a/fxjs/cjs_app.cpp
+++ b/fxjs/cjs_app.cpp
@@ -405,12 +405,6 @@ void CJS_App::ClearTimerCommon(CJS_Runtime* pRuntime,
CJS_Result CJS_App::execMenuItem(
CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params) {
- if (params.size() > 0 && IsTypeKnown(params[0])) {
- WideString item = pRuntime->ToWideString(params[0]);
- if (item == L"SaveAs" && pRuntime->GetFormFillEnv())
- pRuntime->GetFormFillEnv()->SaveCalled();
- }
-
return CJS_Result::Failure(JSMessage::kNotSupportedError);
}