Loading...
--- dyld/dyld-1235.2/cache-builder/StringUtils.h
+++ dyld/dyld-957/cache-builder/StringUtils.h
@@ -25,7 +25,6 @@
#ifndef StringUtils_h
#define StringUtils_h
-#include <algorithm>
#include <string>
inline bool startsWith(const std::string& str, const std::string& prefix)
@@ -44,12 +43,6 @@
}
inline bool endsWith(const std::string& str, const std::string& suffix)
-{
- std::size_t index = str.find(suffix, str.size() - suffix.size());
- return (index != std::string::npos);
-}
-
-inline bool endsWith(const std::string_view& str, const std::string_view& suffix)
{
std::size_t index = str.find(suffix, str.size() - suffix.size());
return (index != std::string::npos);