From eca82312a4e229ec323188e1042b745bbaa06796 Mon Sep 17 00:00:00 2001 From: hnwyllmm Date: Fri, 8 Jul 2022 14:03:20 +0800 Subject: [PATCH] remove unused file --- deps/common/#defer.h# | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 deps/common/#defer.h# diff --git a/deps/common/#defer.h# b/deps/common/#defer.h# deleted file mode 100644 index 19a1621..0000000 --- a/deps/common/#defer.h# +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -namespace common { -class DeferHelper -{ -public: - DeferHelper(std::function &defer) : defer_(defer) - {} - - ~DeferHelper() - { - defer_(); - } - -private: - std::function &defer_; -}; - -} // namespace common - -#define DEFER(callback) common::DeferHelper defer_helper_##__LINE__(callback) -- GitLab