summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-07-19 13:36:19 +0300
committerخالد حسني <khaled@libreoffice.org>2023-07-23 06:04:47 +0200
commit60c8a8062cc4632b400e5498310d4ade84b8fe34 (patch)
tree12d8fd0931b503f8b8fad35708ee12271f83f29a /drawinglayer
parentd9ae579c8a2f5d305fd6419069ed00cf4d8bb015 (diff)
drawinglayer: Drop recently unused TextLayouterDevice::getCaretPositions()
Change-Id: I07255d45bc03a5f86a22d7f392c14053eec7f6ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154648 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/textlayoutdevice.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
index 2b0356518285..1c551ce01363 100644
--- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx
+++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx
@@ -317,29 +317,6 @@ std::vector<double> TextLayouterDevice::getTextArray(const OUString& rText, sal_
return aRetval;
}
-std::vector<double> TextLayouterDevice::getCaretPositions(const OUString& rText, sal_uInt32 nIndex,
- sal_uInt32 nLength) const
-{
- std::vector<double> aRetval;
- sal_uInt32 nTextLength(nLength);
- const sal_uInt32 nStringLength(rText.getLength());
-
- if (nTextLength + nIndex > nStringLength)
- {
- nTextLength = nStringLength - nIndex;
- }
-
- if (nTextLength)
- {
- aRetval.reserve(2 * nTextLength);
- std::vector<sal_Int32> aArray(2 * nTextLength);
- mrDevice.GetCaretPositions(rText, aArray.data(), nIndex, nTextLength);
- aRetval.assign(aArray.begin(), aArray.end());
- }
-
- return aRetval;
-}
-
// helper methods for vcl font handling
vcl::Font getVclFontFromFontAttribute(const attribute::FontAttribute& rFontAttribute,