summaryrefslogtreecommitdiff
path: root/goo
diff options
context:
space:
mode:
authorOliver Sander <oliver.sander@tu-dresden.de>2019-11-18 21:46:45 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2019-11-19 20:21:11 +0000
commit1417e6825b525eb09b67fdd80ddbbd33ce6eb5dc (patch)
tree395887eee702d64b28b008e3f1896c325f92e53c /goo
parentf2b00803ba4b030acae28c4560ccf011d7edfd4b (diff)
Remove GooString::upperCase
It is never used.
Diffstat (limited to 'goo')
-rw-r--r--goo/GooString.cc10
-rw-r--r--goo/GooString.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/goo/GooString.cc b/goo/GooString.cc
index 86fadf30..998c77ec 100644
--- a/goo/GooString.cc
+++ b/goo/GooString.cc
@@ -614,16 +614,6 @@ void formatDoubleSmallAware(double x, char *buf, int bufSize, int prec,
}
-GooString *GooString::upperCase() {
- for (auto& c : *this) {
- if (std::islower(c)) {
- c = std::toupper(c);
- }
- }
-
- return this;
-}
-
GooString *GooString::lowerCase() {
for (auto& c : *this) {
if (std::isupper(c)) {
diff --git a/goo/GooString.h b/goo/GooString.h
index 3bc8abbf..6543d833 100644
--- a/goo/GooString.h
+++ b/goo/GooString.h
@@ -156,7 +156,6 @@ public:
GooString *del(int i, int n = 1) { erase(i, n); return this; }
// Convert string to all-upper/all-lower case.
- GooString *upperCase();
GooString *lowerCase();
// Compare two strings: -1:< 0:= +1:>