summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_scroll_bar.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_scroll_bar.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_scroll_bar.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp b/fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp
index ca637600f7..537e51c010 100644
--- a/fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp
@@ -136,64 +136,6 @@ void CPWL_SBButton::OnCreate(PWL_CREATEPARAM& cp) {
cp.eCursorType = FXCT_ARROW;
}
-void CPWL_SBButton::GetThisAppearanceStream(std::ostringstream* psAppStream) {
- CPWL_Wnd::GetThisAppearanceStream(psAppStream);
-
- if (!IsVisible())
- return;
-
- CFX_FloatRect rectWnd = GetWindowRect();
- if (rectWnd.IsEmpty())
- return;
-
- CFX_PointF ptCenter = GetCenterPoint();
- CFX_PointF pt1;
- CFX_PointF pt2;
- CFX_PointF pt3;
- if (m_eScrollBarType == SBT_HSCROLL) {
- if (m_eSBButtonType == PSBT_MIN) {
- pt1 = CFX_PointF(ptCenter.x - kTriangleHalfLength * 0.5f, ptCenter.y);
- pt2 = CFX_PointF(ptCenter.x + kTriangleHalfLength * 0.5f,
- ptCenter.y + kTriangleHalfLength);
- pt3 = CFX_PointF(ptCenter.x + kTriangleHalfLength * 0.5f,
- ptCenter.y - kTriangleHalfLength);
- } else if (m_eSBButtonType == PSBT_MAX) {
- pt1 = CFX_PointF(ptCenter.x + kTriangleHalfLength * 0.5f, ptCenter.y);
- pt2 = CFX_PointF(ptCenter.x - kTriangleHalfLength * 0.5f,
- ptCenter.y + kTriangleHalfLength);
- pt3 = CFX_PointF(ptCenter.x - kTriangleHalfLength * 0.5f,
- ptCenter.y - kTriangleHalfLength);
- }
- } else {
- if (m_eSBButtonType == PSBT_MIN) {
- pt1 = CFX_PointF(ptCenter.x - kTriangleHalfLength,
- ptCenter.y - kTriangleHalfLength * 0.5f);
- pt2 = CFX_PointF(ptCenter.x + kTriangleHalfLength,
- ptCenter.y - kTriangleHalfLength * 0.5f);
- pt3 = CFX_PointF(ptCenter.x, ptCenter.y + kTriangleHalfLength * 0.5f);
- } else if (m_eSBButtonType == PSBT_MAX) {
- pt1 = CFX_PointF(ptCenter.x - kTriangleHalfLength,
- ptCenter.y + kTriangleHalfLength * 0.5f);
- pt2 = CFX_PointF(ptCenter.x + kTriangleHalfLength,
- ptCenter.y + kTriangleHalfLength * 0.5f);
- pt3 = CFX_PointF(ptCenter.x, ptCenter.y - kTriangleHalfLength * 0.5f);
- }
- }
-
- *psAppStream << "q\n";
- if (m_eSBButtonType != PSBT_POS) {
- if (rectWnd.right - rectWnd.left > kTriangleHalfLength * 2 &&
- rectWnd.top - rectWnd.bottom > kTriangleHalfLength) {
- *psAppStream << "0 g\n"
- << pt1.x << " " << pt1.y << " m\n"
- << pt2.x << " " << pt2.y << " l\n"
- << pt3.x << " " << pt3.y << " l\n"
- << pt1.x << " " << pt1.y << " l f\n";
- }
- }
- *psAppStream << "Q\n";
-}
-
void CPWL_SBButton::DrawThisAppearance(CFX_RenderDevice* pDevice,
CFX_Matrix* pUser2Device) {
if (!IsVisible())
@@ -461,20 +403,6 @@ void CPWL_ScrollBar::RePosChildWnd() {
MovePosButton(false);
}
-void CPWL_ScrollBar::GetThisAppearanceStream(std::ostringstream* psAppStream) {
- CFX_FloatRect rectWnd = GetWindowRect();
-
- if (!IsVisible() || rectWnd.IsEmpty())
- return;
-
- *psAppStream << "q\n"
- << "0 w\n"
- << CPWL_Utils::GetColorAppStream(GetBackgroundColor(), true)
- << rectWnd.left << " " << rectWnd.bottom << " "
- << rectWnd.right - rectWnd.left << " "
- << rectWnd.top - rectWnd.bottom << " re b Q\n";
-}
-
void CPWL_ScrollBar::DrawThisAppearance(CFX_RenderDevice* pDevice,
CFX_Matrix* pUser2Device) {
CFX_FloatRect rectWnd = GetWindowRect();