Remove unnecessary definition of 'art::Split'
Bug: http://b/78352390
Fix duplicate symbol warning found with lld
Test: build with
https://android-review.googlesource.com/c/platform/art/+/669149 and
verify that the duplicate symbol warning is no longer generated.
Change-Id: Ie77d1bfaa84ec034ef9bc39dd63422d859e0f7c5
diff --git a/libdexfile/dex/descriptors_names.cc b/libdexfile/dex/descriptors_names.cc
index 8124e72..e338b55 100644
--- a/libdexfile/dex/descriptors_names.cc
+++ b/libdexfile/dex/descriptors_names.cc
@@ -403,22 +403,6 @@
return IsValidClassName<kDescriptor, '/'>(s);
}
-void Split(const std::string& s, char separator, std::vector<std::string>* result) {
- const char* p = s.data();
- const char* end = p + s.size();
- while (p != end) {
- if (*p == separator) {
- ++p;
- } else {
- const char* start = p;
- while (++p != end && *p != separator) {
- // Skip to the next occurrence of the separator.
- }
- result->push_back(std::string(start, p - start));
- }
- }
-}
-
std::string PrettyDescriptor(Primitive::Type type) {
return PrettyDescriptor(Primitive::Descriptor(type));
}