CFWL_WidgetTP::Initialize() and Finalize() are unused. They are only called as part of method chaining from subclass overrides, which are not called. Change-Id: I4ed5f82723af2b510bc91f5bd85b57c35132f541 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/64670 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.cpp b/xfa/fwl/theme/cfwl_checkboxtp.cpp index d678281..a6f074f 100644 --- a/xfa/fwl/theme/cfwl_checkboxtp.cpp +++ b/xfa/fwl/theme/cfwl_checkboxtp.cpp
@@ -37,16 +37,6 @@ m_pCheckPath->Clear(); } -void CFWL_CheckBoxTP::Initialize() { - CFWL_WidgetTP::Initialize(); - InitTTO(); -} - -void CFWL_CheckBoxTP::Finalize() { - FinalizeTTO(); - CFWL_WidgetTP::Finalize(); -} - void CFWL_CheckBoxTP::DrawText(const CFWL_ThemeText& pParams) { if (!m_pTextOut) return;
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.h b/xfa/fwl/theme/cfwl_checkboxtp.h index 5bdd8e2..e79a693 100644 --- a/xfa/fwl/theme/cfwl_checkboxtp.h +++ b/xfa/fwl/theme/cfwl_checkboxtp.h
@@ -19,8 +19,6 @@ ~CFWL_CheckBoxTP() override; // CFWL_WidgetTP - void Initialize() override; - void Finalize() override; void DrawBackground(const CFWL_ThemeBackground& pParams) override; void DrawText(const CFWL_ThemeText& pParams) override;
diff --git a/xfa/fwl/theme/cfwl_monthcalendartp.cpp b/xfa/fwl/theme/cfwl_monthcalendartp.cpp index 08a7c4e..7e9a728 100644 --- a/xfa/fwl/theme/cfwl_monthcalendartp.cpp +++ b/xfa/fwl/theme/cfwl_monthcalendartp.cpp
@@ -32,16 +32,6 @@ CFWL_MonthCalendarTP::~CFWL_MonthCalendarTP() = default; -void CFWL_MonthCalendarTP::Initialize() { - CFWL_WidgetTP::Initialize(); - InitTTO(); -} - -void CFWL_MonthCalendarTP::Finalize() { - FinalizeTTO(); - CFWL_WidgetTP::Finalize(); -} - void CFWL_MonthCalendarTP::DrawBackground(const CFWL_ThemeBackground& pParams) { switch (pParams.m_iPart) { case CFWL_Part::Border: {
diff --git a/xfa/fwl/theme/cfwl_monthcalendartp.h b/xfa/fwl/theme/cfwl_monthcalendartp.h index 1892b3b..dd82cc1 100644 --- a/xfa/fwl/theme/cfwl_monthcalendartp.h +++ b/xfa/fwl/theme/cfwl_monthcalendartp.h
@@ -15,8 +15,6 @@ ~CFWL_MonthCalendarTP() override; // CFWL_WidgetTP - void Initialize() override; - void Finalize() override; void DrawBackground(const CFWL_ThemeBackground& pParams) override; void DrawText(const CFWL_ThemeText& pParams) override;
diff --git a/xfa/fwl/theme/cfwl_widgettp.cpp b/xfa/fwl/theme/cfwl_widgettp.cpp index b8aa2a8..76c1290 100644 --- a/xfa/fwl/theme/cfwl_widgettp.cpp +++ b/xfa/fwl/theme/cfwl_widgettp.cpp
@@ -34,13 +34,6 @@ CFWL_WidgetTP::~CFWL_WidgetTP() = default; -void CFWL_WidgetTP::Initialize() {} - -void CFWL_WidgetTP::Finalize() { - if (m_pTextOut) - FinalizeTTO(); -} - void CFWL_WidgetTP::DrawBackground(const CFWL_ThemeBackground& pParams) {} void CFWL_WidgetTP::DrawText(const CFWL_ThemeText& pParams) {
diff --git a/xfa/fwl/theme/cfwl_widgettp.h b/xfa/fwl/theme/cfwl_widgettp.h index 28e206f..fc5096d 100644 --- a/xfa/fwl/theme/cfwl_widgettp.h +++ b/xfa/fwl/theme/cfwl_widgettp.h
@@ -26,9 +26,6 @@ public: virtual ~CFWL_WidgetTP(); - virtual void Initialize(); - virtual void Finalize(); - virtual void DrawBackground(const CFWL_ThemeBackground& pParams); virtual void DrawText(const CFWL_ThemeText& pParams);