Skip to content

Commit 675b629

Browse files
removing dead code
1 parent 57f3552 commit 675b629

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

sources/main.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,12 @@ boost::filesystem::path clang_path(boost::filesystem::path xcode_path) {
151151

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

166162
/**************************************************************************************************/

0 commit comments

Comments
 (0)