Remove CPDFSDK_Widget::GetAlternateName() It is uncalled (but there is a method of the same name in CPDF_FormField that is called from JS callbacks). Change-Id: I1abf3ed5cc5004bf2fde01d68c9d780e5e2805a6 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/65910 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp index 6d92b74..4ecc705 100644 --- a/fpdfsdk/cpdfsdk_widget.cpp +++ b/fpdfsdk/cpdfsdk_widget.cpp
@@ -864,8 +864,3 @@ return CPDF_Action(nullptr); } - -WideString CPDFSDK_Widget::GetAlternateName() const { - CPDF_FormField* pFormField = GetFormField(); - return pFormField->GetAlternateName(); -}
diff --git a/fpdfsdk/cpdfsdk_widget.h b/fpdfsdk/cpdfsdk_widget.h index 3037a16..d328b67 100644 --- a/fpdfsdk/cpdfsdk_widget.h +++ b/fpdfsdk/cpdfsdk_widget.h
@@ -85,7 +85,6 @@ bool IsChecked() const; int GetAlignment() const; int GetMaxLen() const; - WideString GetAlternateName() const; void SetCheck(bool bChecked, NotificationOption notify); void SetValue(const WideString& sValue, NotificationOption notify);