[libcxx] r293445 - experimental: remove dead function
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 29 14:31:29 PST 2017
Author: compnerd
Date: Sun Jan 29 16:31:28 2017
New Revision: 293445
URL: http://llvm.org/viewvc/llvm-project?rev=293445&view=rev
Log:
experimental: remove dead function
This template was defined inline, within the TU only and had no uses
across the entire repository. Remove the dead code. NFC.
Modified:
libcxx/trunk/src/experimental/filesystem/directory_iterator.cpp
Modified: libcxx/trunk/src/experimental/filesystem/directory_iterator.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/experimental/filesystem/directory_iterator.cpp?rev=293445&r1=293444&r2=293445&view=diff
==============================================================================
--- libcxx/trunk/src/experimental/filesystem/directory_iterator.cpp (original)
+++ libcxx/trunk/src/experimental/filesystem/directory_iterator.cpp Sun Jan 29 16:31:28 2017
@@ -12,19 +12,6 @@ inline error_code capture_errno() {
}
template <class ...Args>
-inline bool capture_error_or_throw(std::error_code* user_ec,
- const char* msg, Args&&... args)
-{
- std::error_code my_ec = capture_errno();
- if (user_ec) {
- *user_ec = my_ec;
- return true;
- }
- __throw_filesystem_error(msg, std::forward<Args>(args)..., my_ec);
- return false;
-}
-
-template <class ...Args>
inline bool set_or_throw(std::error_code& my_ec,
std::error_code* user_ec,
const char* msg, Args&&... args)
More information about the cfe-commits
mailing list