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:
parent
ac0117713e
commit
b54f188b38
2 changed files with 0 additions and 19 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue