Skip to content

Commit

Permalink
ifdef'd out unused code on non-Windows platforms (flutter#4408)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonyi authored Dec 1, 2017
1 parent 74a2d90 commit 8dc5e85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/common/engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -72,6 +73,7 @@ void FindAndReplaceInPlace(std::string& str,
pos += replaceStr.length();
}
}
#endif

std::string SanitizePath(const std::string& path) {
#if OS(WIN)
Expand Down

0 comments on commit 8dc5e85

Please sign in to comment.