]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Remove redundant copy of DEF_WRAP_1_R
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 17 Mar 2024 20:38:34 +0000 (21:38 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 24 Mar 2024 08:32:13 +0000 (09:32 +0100)
src/ccache/util/filesystem.hpp

index 420e5af6888c3f79eb60c314191da178fc27f20b..c009b086bff928da5e5eb65d1b3973b21fde8a9c 100644 (file)
@@ -85,18 +85,6 @@ using path = std::filesystem::path;
     return {};                                                                 \
   }
 
-// Define wrapper with one parameter returning non-void result.
-#define DEF_WRAP_1_R(name_, r_, t1_, p1_)                                      \
-  inline tl::expected<r_, std::error_code> name_(t1_ p1_)                      \
-  {                                                                            \
-    std::error_code ec_;                                                       \
-    auto result_ = std::filesystem::name_(p1_, ec_);                           \
-    if (ec_) {                                                                 \
-      return tl::unexpected(ec_);                                              \
-    }                                                                          \
-    return result_;                                                            \
-  }
-
 // Define wrapper with two parameters returning void.
 #define DEF_WRAP_2_V(name_, r_, t1_, p1_, t2_, p2_)                            \
   inline tl::expected<r_, std::error_code> name_(t1_ p1_, t2_ p2_)             \