Skip to content

Commit

Permalink
removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterbrereton committed Oct 25, 2018
1 parent 57f3552 commit 675b629
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sources/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,12 @@ boost::filesystem::path clang_path(boost::filesystem::path xcode_path) {

boost::filesystem::path get_xcode_path() {
// This routine gets us to the "/path/to/Xcode.app/Contents/Developer" folder
#if 0
return exec("xcode-select -p");
#else
std::string clang_details = exec("clang++ --version");
// This assumes "InstalledDir:" is the last flag in the lineup.
const std::string needle("InstalledDir: ");
auto installed_dir_pos = clang_details.find(needle);
boost::filesystem::path result = clang_details.substr(installed_dir_pos + needle.size(), std::string::npos);
return canonical(result / ".." / ".." / ".." / "..");
#endif
}

/**************************************************************************************************/
Expand Down

0 comments on commit 675b629

Please sign in to comment.