summaryrefslogtreecommitdiff
path: root/src/helpers/ScopeGuard.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-09-21 00:33:48 +0100
committerVaxry <vaxry@vaxry.net>2024-09-21 00:37:17 +0100
commit9232bc2c00a57b99ac876b43fdfedfa25c2de774 (patch)
treedf71f765676bd668a57b0f0d011652390d6f6d7c /src/helpers/ScopeGuard.hpp
parentdb0b764a5ac22e752d8557cc1e1e5a42ac58c7e4 (diff)
internal: move to hyprutils' scopeguard
bumps hyprutils dep to 0.2.2
Diffstat (limited to 'src/helpers/ScopeGuard.hpp')
-rw-r--r--src/helpers/ScopeGuard.hpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/helpers/ScopeGuard.hpp b/src/helpers/ScopeGuard.hpp
deleted file mode 100644
index 8a1468eb..00000000
--- a/src/helpers/ScopeGuard.hpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#pragma once
-
-#include <functional>
-
-// calls a function when it goes out of scope
-class CScopeGuard {
- public:
- CScopeGuard(const std::function<void()>& fn_);
- ~CScopeGuard();
-
- private:
- std::function<void()> fn;
-};