From df2122a240bb0bd1a3f392433175a35eb3c8c6fc Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 19 Jul 2017 15:25:30 -0400 Subject: Remove unused GetThisAppearanceStream This method is never called. Removed. Change-Id: Iff366d68b4865d195d50a6c37376e81a5a4408b2 Reviewed-on: https://pdfium-review.googlesource.com/8313 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- fpdfsdk/pdfwindow/cpwl_wnd.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.cpp') diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.cpp b/fpdfsdk/pdfwindow/cpwl_wnd.cpp index d3ff2a5743..8862fc4c8b 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.cpp +++ b/fpdfsdk/pdfwindow/cpwl_wnd.cpp @@ -245,39 +245,6 @@ void CPWL_Wnd::InvalidateRectMove(const CFX_FloatRect& rcOld, InvalidateRect(&rcUnion); } -void CPWL_Wnd::GetAppearanceStream(std::ostringstream* psAppStream) { - if (IsValid() && IsVisible()) { - GetThisAppearanceStream(psAppStream); - GetChildAppearanceStream(psAppStream); - } -} - -// if don't set,Get default apperance stream -void CPWL_Wnd::GetThisAppearanceStream(std::ostringstream* psAppStream) { - CFX_FloatRect rectWnd = GetWindowRect(); - if (rectWnd.IsEmpty()) - return; - - if (HasFlag(PWS_BACKGROUND)) - *psAppStream << CPWL_Utils::GetRectFillAppStream(rectWnd, - GetBackgroundColor()); - - if (HasFlag(PWS_BORDER)) { - *psAppStream << CPWL_Utils::GetBorderAppStream( - rectWnd, (float)GetBorderWidth(), GetBorderColor(), - GetBorderLeftTopColor(GetBorderStyle()), - GetBorderRightBottomColor(GetBorderStyle()), GetBorderStyle(), - GetBorderDash()); - } -} - -void CPWL_Wnd::GetChildAppearanceStream(std::ostringstream* psAppStream) { - for (CPWL_Wnd* pChild : m_Children) { - if (pChild) - pChild->GetAppearanceStream(psAppStream); - } -} - void CPWL_Wnd::DrawAppearance(CFX_RenderDevice* pDevice, CFX_Matrix* pUser2Device) { if (IsValid() && IsVisible()) { -- cgit v1.2.3