summaryrefslogtreecommitdiff
path: root/xfa/fwl/core
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-19 10:06:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-19 10:06:46 -0700
commite58febc04514694935fcdf00f604419a1e5076b0 (patch)
tree262fc62eef1e5a57fec4b159097ab4904afb4f17 /xfa/fwl/core
parent0ca71ec811e33818d2ccba3221fdb660811b813c (diff)
downloadpdfium-e58febc04514694935fcdf00f604419a1e5076b0.tar.xz
Remove SetDataProvider from IFWL_Widget
Method is not called, removed. Review-Url: https://chromiumcodereview.appspot.com/2433103002
Diffstat (limited to 'xfa/fwl/core')
-rw-r--r--xfa/fwl/core/fwl_formimp.cpp3
-rw-r--r--xfa/fwl/core/fwl_widgetimp.cpp7
-rw-r--r--xfa/fwl/core/fwl_widgetimp.h1
-rw-r--r--xfa/fwl/core/ifwl_widget.h1
4 files changed, 1 insertions, 11 deletions
diff --git a/xfa/fwl/core/fwl_formimp.cpp b/xfa/fwl/core/fwl_formimp.cpp
index 747e5e83dc..0f4b89a774 100644
--- a/xfa/fwl/core/fwl_formimp.cpp
+++ b/xfa/fwl/core/fwl_formimp.cpp
@@ -757,8 +757,7 @@ void CFWL_FormImp::UpdateCaption() {
CFWL_WidgetMgr* pWidgetMgr = CFWL_WidgetMgr::GetInstance();
if (!pWidgetMgr)
return;
- IFWL_FormDP* pData =
- static_cast<IFWL_FormDP*>(m_pProperties->m_pDataProvider);
+ IFWL_DataProvider* pData = m_pProperties->m_pDataProvider;
if (!pData)
return;
CFX_WideString text;
diff --git a/xfa/fwl/core/fwl_widgetimp.cpp b/xfa/fwl/core/fwl_widgetimp.cpp
index b59fd27713..890f0da8af 100644
--- a/xfa/fwl/core/fwl_widgetimp.cpp
+++ b/xfa/fwl/core/fwl_widgetimp.cpp
@@ -156,9 +156,6 @@ IFWL_ThemeProvider* IFWL_Widget::GetThemeProvider() {
FWL_Error IFWL_Widget::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) {
return GetImpl()->SetThemeProvider(pThemeProvider);
}
-FWL_Error IFWL_Widget::SetDataProvider(IFWL_DataProvider* pDataProvider) {
- return GetImpl()->SetDataProvider(pDataProvider);
-}
IFWL_WidgetDelegate* IFWL_Widget::SetDelegate(IFWL_WidgetDelegate* pDelegate) {
return GetImpl()->SetDelegate(pDelegate);
}
@@ -474,10 +471,6 @@ FWL_Error CFWL_WidgetImp::SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) {
m_pProperties->m_pThemeProvider = pThemeProvider;
return FWL_Error::Succeeded;
}
-FWL_Error CFWL_WidgetImp::SetDataProvider(IFWL_DataProvider* pDataProvider) {
- m_pProperties->m_pDataProvider = pDataProvider;
- return FWL_Error::Succeeded;
-}
IFWL_WidgetDelegate* CFWL_WidgetImp::SetDelegate(
IFWL_WidgetDelegate* pDelegate) {
if (!m_pCurDelegate) {
diff --git a/xfa/fwl/core/fwl_widgetimp.h b/xfa/fwl/core/fwl_widgetimp.h
index dfbfc5bf4b..10f7880ba3 100644
--- a/xfa/fwl/core/fwl_widgetimp.h
+++ b/xfa/fwl/core/fwl_widgetimp.h
@@ -68,7 +68,6 @@ class CFWL_WidgetImp {
const CFX_Matrix* pMatrix = nullptr);
virtual IFWL_ThemeProvider* GetThemeProvider();
virtual FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
- virtual FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider);
virtual IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
virtual IFWL_App* GetOwnerApp() const;
diff --git a/xfa/fwl/core/ifwl_widget.h b/xfa/fwl/core/ifwl_widget.h
index ac213fefae..6d7d53c400 100644
--- a/xfa/fwl/core/ifwl_widget.h
+++ b/xfa/fwl/core/ifwl_widget.h
@@ -96,7 +96,6 @@ class IFWL_Widget {
const CFX_Matrix* pMatrix = nullptr);
IFWL_ThemeProvider* GetThemeProvider();
FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider);
- FWL_Error SetDataProvider(IFWL_DataProvider* pDataProvider);
IFWL_WidgetDelegate* SetDelegate(IFWL_WidgetDelegate* pDelegate);
IFWL_App* GetOwnerApp() const;
CFX_SizeF GetOffsetFromParent(IFWL_Widget* pParent);