summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_caret.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_caret.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_caret.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_caret.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_caret.cpp b/fpdfsdk/pdfwindow/cpwl_caret.cpp
index def479a4df..2e56450fb3 100644
--- a/fpdfsdk/pdfwindow/cpwl_caret.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_caret.cpp
@@ -24,10 +24,6 @@ CFX_ByteString CPWL_Caret::GetClassName() const {
return "CPWL_Caret";
}
-void CPWL_Caret::GetThisAppearanceStream(std::ostringstream* psAppStream) {
- GetCaretApp(CFX_PointF(), psAppStream);
-}
-
void CPWL_Caret::DrawThisAppearance(CFX_RenderDevice* pDevice,
CFX_Matrix* pUser2Device) {
if (!IsVisible() || !m_bFlash)
@@ -58,36 +54,6 @@ void CPWL_Caret::DrawThisAppearance(CFX_RenderDevice* pDevice,
FXFILL_ALTERNATE);
}
-void CPWL_Caret::GetCaretApp(const CFX_PointF& ptOffset,
- std::ostringstream* psAppStream) {
- if (!IsVisible() || !m_bFlash)
- return;
-
- CFX_FloatRect rcRect = GetCaretRect();
- CFX_FloatRect rcClip = GetClipRect();
-
- rcRect.Translate(ptOffset.x, ptOffset.y);
- rcClip.Translate(ptOffset.x, ptOffset.y);
-
- *psAppStream << "q\n";
- if (!rcClip.IsEmpty()) {
- *psAppStream << rcClip.left << " " << rcClip.bottom + 2.5f << " "
- << rcClip.right - rcClip.left << " "
- << rcClip.top - rcClip.bottom - 4.5f << " re W n\n";
- }
- *psAppStream << m_fWidth << " w\n0 G\n"
- << rcRect.left + m_fWidth / 2 << " " << rcRect.bottom << " m\n"
- << rcRect.left + m_fWidth / 2 << " " << rcRect.top
- << " l S\nQ\n";
-}
-
-CFX_ByteString CPWL_Caret::GetCaretAppearanceStream(
- const CFX_PointF& ptOffset) {
- std::ostringstream sCaret;
- GetCaretApp(ptOffset, &sCaret);
- return CFX_ByteString(sCaret);
-}
-
void CPWL_Caret::TimerProc() {
if (m_nDelay > 0) {
m_nDelay--;