summaryrefslogtreecommitdiff
path: root/libutils/String8.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2021-04-14 17:36:36 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-04-14 17:36:36 +0000
commit450f66bd8fbd0e5f13ddb40365ef1eb48d61db29 (patch)
tree7974b6e79a0ba88666352515dbf9df250083b8e6 /libutils/String8.cpp
parent664f9cd068d775020b600910ef0307a39eb79dcc (diff)
parent9434f59c178ed8fddb96159101e8bb6d09ddf6d6 (diff)
Merge "Remove String8::toUpper()."
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