Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 2323523002: Remove unused code in CPDFXFA_Document (Closed)

Created:
4 years, 3 months ago by dsinclair
Modified:
4 years, 3 months ago
Reviewers:
Tom Sepez, Lei Zhang, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Remove unused code in CPDFXFA_Document Remove methods that always just return without doing any work. Clean up the IXFA_DocProvider interface calls for those methods and cleanup the callers that were calling the methods. Committed: https://pdfium.googlesource.com/pdfium/+/89f8fa8694bbf209412845c250af48bbc539962b

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase to master #

Total comments: 8

Patch Set 3 : Rebase to master #

Patch Set 4 : Remove GetSuggestedWords #

Total comments: 2

Patch Set 5 : Rebase to master #

Patch Set 6 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -385 lines) Patch
M fpdfsdk/fpdfsave.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 1 2 3 4 5 19 chunks +37 lines, -98 lines 0 comments Download
M fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h View 6 chunks +17 lines, -52 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdoc.cpp View 1 chunk +4 lines, -50 lines 0 comments Download
M xfa/fxfa/app/xfa_ffsignature.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.cpp View 1 2 3 2 chunks +3 lines, -13 lines 0 comments Download
M xfa/fxfa/include/fxfa.h View 4 chunks +0 lines, -30 lines 0 comments Download
M xfa/fxfa/parser/cscript_hostpseudomodel.cpp View 1 chunk +3 lines, -11 lines 0 comments Download
M xfa/fxfa/parser/cscript_layoutpseudomodel.cpp View 7 chunks +31 lines, -64 lines 0 comments Download
M xfa/fxfa/parser/cscript_signaturepseudomodel.cpp View 3 chunks +8 lines, -60 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (16 generated)
dsinclair
PTAL. I pulled a string and a bunch of stuff fell out .... Please give ...
4 years, 3 months ago (2016-09-07 21:20:56 UTC) #4
Tom Sepez
(Got part way thru but didn't finish. Will look at next week)
4 years, 3 months ago (2016-09-08 15:52:18 UTC) #7
Tom Sepez
https://codereview.chromium.org/2323523002/diff/20001/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h File fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h (right): https://codereview.chromium.org/2323523002/diff/20001/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h#newcode154 fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h:154: FX_BOOL NotifySubmit(FX_BOOL bPrevOrPost); nit: Can we make these |bool| ...
4 years, 3 months ago (2016-09-12 18:15:13 UTC) #12
dsinclair
https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_ffdoc.cpp File xfa/fxfa/app/xfa_ffdoc.cpp (left): https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_ffdoc.cpp#oldcode242 xfa/fxfa/app/xfa_ffdoc.cpp:242: m_pDocumentParser->GetDocument()->GetXFAObject(XFA_HASHCODE_Pdf)); On 2016/09/12 18:15:13, Tom Sepez wrote: > I'm ...
4 years, 3 months ago (2016-09-12 18:23:20 UTC) #13
dsinclair
https://codereview.chromium.org/2323523002/diff/20001/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h File fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h (right): https://codereview.chromium.org/2323523002/diff/20001/fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h#newcode154 fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h:154: FX_BOOL NotifySubmit(FX_BOOL bPrevOrPost); On 2016/09/12 18:15:13, Tom Sepez wrote: ...
4 years, 3 months ago (2016-09-12 18:34:50 UTC) #14
Tom Sepez
Ok, other than that I think we're good but let's get one more pair of ...
4 years, 3 months ago (2016-09-12 19:04:55 UTC) #15
dsinclair
weili@ would you be able to give this a second set of eyes?
4 years, 3 months ago (2016-09-13 13:19:48 UTC) #16
Wei Li
have a more general question first https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp File xfa/fxfa/app/xfa_fftextedit.cpp (left): https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp#oldcode393 xfa/fxfa/app/xfa_fftextedit.cpp:393: return GetDoc()->GetDocProvider()->CheckWord(GetDoc(), sWord); ...
4 years, 3 months ago (2016-09-13 17:45:53 UTC) #17
dsinclair
https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp File xfa/fxfa/app/xfa_fftextedit.cpp (left): https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp#oldcode393 xfa/fxfa/app/xfa_fftextedit.cpp:393: return GetDoc()->GetDocProvider()->CheckWord(GetDoc(), sWord); On 2016/09/13 17:45:52, Wei Li wrote: ...
4 years, 3 months ago (2016-09-13 17:51:20 UTC) #18
Wei Li
https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp File xfa/fxfa/app/xfa_fftextedit.cpp (left): https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp#oldcode393 xfa/fxfa/app/xfa_fftextedit.cpp:393: return GetDoc()->GetDocProvider()->CheckWord(GetDoc(), sWord); On 2016/09/13 17:51:19, dsinclair wrote: > ...
4 years, 3 months ago (2016-09-13 18:09:07 UTC) #19
dsinclair
https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp File xfa/fxfa/app/xfa_fftextedit.cpp (left): https://codereview.chromium.org/2323523002/diff/20001/xfa/fxfa/app/xfa_fftextedit.cpp#oldcode393 xfa/fxfa/app/xfa_fftextedit.cpp:393: return GetDoc()->GetDocProvider()->CheckWord(GetDoc(), sWord); On 2016/09/13 18:09:07, Wei Li wrote: ...
4 years, 3 months ago (2016-09-13 18:12:12 UTC) #20
dsinclair
PTAL. I've removed GetSuggestWords. I left CheckWord() because we take the return value and stuff ...
4 years, 3 months ago (2016-09-13 19:37:19 UTC) #21
Wei Li
lgtm https://codereview.chromium.org/2323523002/diff/60001/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp File fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp (right): https://codereview.chromium.org/2323523002/diff/60001/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp#newcode1120 fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp:1120: ExportSubmitFile(pFileHandler, FXFA_SAVEAS_XML, 0, 0x01111111); Why change this value? ...
4 years, 3 months ago (2016-09-13 21:31:20 UTC) #26
dsinclair
https://codereview.chromium.org/2323523002/diff/60001/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp File fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp (right): https://codereview.chromium.org/2323523002/diff/60001/fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp#newcode1120 fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp:1120: ExportSubmitFile(pFileHandler, FXFA_SAVEAS_XML, 0, 0x01111111); On 2016/09/13 21:31:20, Wei Li ...
4 years, 3 months ago (2016-09-14 01:06:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2323523002/100001
4 years, 3 months ago (2016-09-14 12:52:11 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 13:11:12 UTC) #32
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/89f8fa8694bbf209412845c250af48bbc539...

Powered by Google App Engine
This is Rietveld 408576698