diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-19 15:25:30 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-19 19:57:19 +0000 |
commit | df2122a240bb0bd1a3f392433175a35eb3c8c6fc (patch) | |
tree | 4f9bed379e8cbcd4604de1ff7836268bd2ff9a1e /fpdfsdk/pdfwindow/cpwl_combo_box.cpp | |
parent | cb2ea42cc56eb6aaab3e498abf13e63742e64181 (diff) | |
download | pdfium-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_combo_box.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_combo_box.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_combo_box.cpp b/fpdfsdk/pdfwindow/cpwl_combo_box.cpp index d2afa3e8aa..97ac318982 100644 --- a/fpdfsdk/pdfwindow/cpwl_combo_box.cpp +++ b/fpdfsdk/pdfwindow/cpwl_combo_box.cpp @@ -94,34 +94,6 @@ bool CPWL_CBListBox::OnCharNotify(uint16_t nChar, uint32_t nFlag) { return OnNotifySelectionChanged(true, nFlag); } -void CPWL_CBButton::GetThisAppearanceStream(std::ostringstream* psAppStream) { - CPWL_Wnd::GetThisAppearanceStream(psAppStream); - - CFX_FloatRect rectWnd = CPWL_Wnd::GetWindowRect(); - - if (!IsVisible() || rectWnd.IsEmpty()) - return; - - CFX_PointF ptCenter = GetCenterPoint(); - - CFX_PointF pt1(ptCenter.x - kTriangleHalfLength, - ptCenter.y + kTriangleHalfLength * 0.5f); - CFX_PointF pt2(ptCenter.x + kTriangleHalfLength, - ptCenter.y + kTriangleHalfLength * 0.5f); - CFX_PointF pt3(ptCenter.x, ptCenter.y - kTriangleHalfLength * 0.5f); - - if (IsFloatBigger(rectWnd.right - rectWnd.left, kTriangleHalfLength * 2) && - IsFloatBigger(rectWnd.top - rectWnd.bottom, kTriangleHalfLength)) { - *psAppStream << "q\n" - << "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" - << "Q\n"; - } -} - void CPWL_CBButton::DrawThisAppearance(CFX_RenderDevice* pDevice, CFX_Matrix* pUser2Device) { CPWL_Wnd::DrawThisAppearance(pDevice, pUser2Device); |