diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-05-30 12:09:18 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-05-30 12:09:18 +0300 |
commit | 340bcdea84741a707454e7b2e0ce400a0620d84b (patch) | |
tree | 6f39f84e546886fa26f94a7c18d05bb00afcbb64 /include/comphelper | |
parent | 5d13b6e8216178258a3ffb5ef4793669099183e4 (diff) |
Revert "Add function to catenate n copies of a string"
COMPHELPER_DLLPUBLIC of an inline function is wrong. Nevermind that I just
followed the example of the preceding functions.
And it is too bikeshedding-inducing anyway to use recursion.
This wasn't used anywahere yet anyway in committed code, just locally in a
tree of mine. Will add a local copy there.
This reverts commit ee0d7d4c52fe93ef2ac73d403f61b642f1ae2716.
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/string.hxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx index a0c68ae1bbe5..181ca8b92a6e 100644 --- a/include/comphelper/string.hxx +++ b/include/comphelper/string.hxx @@ -308,14 +308,6 @@ COMPHELPER_DLLPUBLIC inline OUStringBuffer& padToLength( return detail::padToLength(rBuffer, nLength, cFill); } -COMPHELPER_DLLPUBLIC inline OUString duplicate(const OUString& rString, int nCopies) -{ - if (nCopies <= 0) - return OUString(""); - else - return rString + duplicate(rString, nCopies-1); -} - /** Replace a token in a string @param rIn OUString in which the token is to be replaced @param nToken which nToken to replace |