summaryrefslogtreecommitdiff
path: root/libutils/String8.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-04-12 13:38:31 -0700
committerElliott Hughes <enh@google.com>2021-04-12 13:38:31 -0700
commit9434f59c178ed8fddb96159101e8bb6d09ddf6d6 (patch)
treef39b1157001f444ac863974b12e53e3b65fe5948 /libutils/String8.cpp
parent561209ee664eeecd3e7c291d0e88b9730bec84be (diff)
Remove String8::toUpper().
Actually, it looks like it's only toLower() that's used, so let's remove toUpper() separately, since it's so easy. Test: treehugger Change-Id: I8fae9fa513b2a34d5bd6b3f64e9305a1ee3c1ec4
Diffstat (limited to 'libutils/String8.cpp')
-rw-r--r--libutils/String8.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/libutils/String8.cpp b/libutils/String8.cpp
index fad130b1b..2974aa300 100644
--- a/libutils/String8.cpp
+++ b/libutils/String8.cpp
@@ -426,19 +426,6 @@ void String8::toLower()
unlockBuffer(length);
}
-void String8::toUpper()
-{
- const size_t length = size();
- if (length == 0) return;
-
- char* buf = lockBuffer(length);
- for (size_t i = length; i > 0; --i) {
- *buf = static_cast<char>(toupper(*buf));
- buf++;
- }
- unlockBuffer(length);
-}
-
// ---------------------------------------------------------------------------
// Path functions