summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_wnd.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-19 15:25:30 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-19 19:57:19 +0000
commitdf2122a240bb0bd1a3f392433175a35eb3c8c6fc (patch)
tree4f9bed379e8cbcd4604de1ff7836268bd2ff9a1e /fpdfsdk/pdfwindow/cpwl_wnd.cpp
parentcb2ea42cc56eb6aaab3e498abf13e63742e64181 (diff)
downloadpdfium-df2122a240bb0bd1a3f392433175a35eb3c8c6fc.tar.xz
Remove unused GetThisAppearanceStream
This method is never called. Removed. Change-Id: Iff366d68b4865d195d50a6c37376e81a5a4408b2 Reviewed-on: https://pdfium-review.googlesource.com/8313 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_wnd.cpp33
1 files changed, 0 insertions, 33 deletions
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()) {