diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-10 19:45:14 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-10 19:45:14 +0000 |
commit | e2210acfff622ac73b0783e1523615753484073b (patch) | |
tree | 6adbff1232b2177a6b2581e3ef709b5909a0dda0 /fpdfsdk/cpdfsdk_widget.cpp | |
parent | 7348681933306c3b407cb3756ce4f01782791fb6 (diff) | |
download | pdfium-e2210acfff622ac73b0783e1523615753484073b.tar.xz |
Get rid of useless form of CPDFSDK_Widget::GetFormControl().
Just call CPDF_InterForm::GetControlByDict() directly instead.
Change-Id: I3fce2330ab81324d62477530b2617feeb0a49749
Reviewed-on: https://pdfium-review.googlesource.com/c/43606
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_widget.cpp')
-rw-r--r-- | fpdfsdk/cpdfsdk_widget.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp index fc848d5014..cbd2c7bbba 100644 --- a/fpdfsdk/cpdfsdk_widget.cpp +++ b/fpdfsdk/cpdfsdk_widget.cpp @@ -380,13 +380,6 @@ CPDF_FormControl* CPDFSDK_Widget::GetFormControl() const { return pPDFInterForm->GetControlByDict(GetAnnotDict()); } -CPDF_FormControl* CPDFSDK_Widget::GetFormControl( - CPDF_InterForm* pInterForm, - const CPDF_Dictionary* pAnnotDict) { - ASSERT(pAnnotDict); - return pInterForm->GetControlByDict(pAnnotDict); -} - int CPDFSDK_Widget::GetRotate() const { CPDF_FormControl* pCtrl = GetFormControl(); return pCtrl->GetRotation() % 360; |