From 06f3042167126d60184dc3c401e71924cf3b46af Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Fri, 5 Oct 2018 20:43:46 +0000 Subject: 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 Commit-Queue: Ryan Harrison --- fxjs/cjs_app.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'fxjs') 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>& 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); } -- cgit v1.2.3