Drop newly unused ToggleUnicodeCodepoint::CharsToDelete

Change-Id: I25654d911b1cc11f8c0e7d0ef3e87898418c3408
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172535
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2024-08-28 18:23:55 +05:00
parent ac0117713e
commit b54f188b38
2 changed files with 0 additions and 19 deletions

View file

@ -1270,19 +1270,6 @@ OUString ToggleUnicodeCodepoint::StringToReplace()
return maInput.toString();
}
sal_uInt32 ToggleUnicodeCodepoint::CharsToDelete()
{
OUString sIn = StringToReplace();
sal_Int32 nPos = 0;
sal_uInt32 counter = 0;
while( nPos < sIn.getLength() )
{
sIn.iterateCodePoints(&nPos);
++counter;
}
return counter;
}
OUString ToggleUnicodeCodepoint::ReplacementString()
{
OUString sIn = StringToReplace();

View file

@ -115,12 +115,6 @@ public:
*/
OUString StringToReplace();
OUString ReplacementString();
/**
While sInput.getLength() returns the number of utf16 units to delete,
this function returns the number of "characters" to delete - potentially a smaller number
*/
sal_uInt32 CharsToDelete();
};
#endif