ifdef'd out unused code on non-Windows platforms (flutter/engine#4408)

This commit is contained in:
Ben Konyi
2017-11-30 20:04:42 -05:00
committed by GitHub
parent 31f0a6055c
commit 576964aa79

View File

@@ -63,6 +63,7 @@ constexpr char kNavigationChannel[] = "flutter/navigation";
constexpr char kLocalizationChannel[] = "flutter/localization";
constexpr char kSettingsChannel[] = "flutter/settings";
#if OS(WIN)
void FindAndReplaceInPlace(std::string& str,
const std::string& findStr,
const std::string& replaceStr) {
@@ -72,6 +73,7 @@ void FindAndReplaceInPlace(std::string& str,
pos += replaceStr.length();
}
}
#endif
std::string SanitizePath(const std::string& path) {
#if OS(WIN)