From 675b62960b4b3e33717553668931af7f529d6c85 Mon Sep 17 00:00:00 2001 From: Foster Brereton Date: Wed, 24 Oct 2018 23:13:24 -0700 Subject: [PATCH] removing dead code --- sources/main.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sources/main.cpp b/sources/main.cpp index e9a15ca..0769e73 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -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 } /**************************************************************************************************/