summaryrefslogtreecommitdiff
path: root/src/helpers/ScopeGuard.cpp
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.cpp
parentdb0b764a5ac22e752d8557cc1e1e5a42ac58c7e4 (diff)
internal: move to hyprutils' scopeguard
bumps hyprutils dep to 0.2.2
Diffstat (limited to 'src/helpers/ScopeGuard.cpp')
-rw-r--r--src/helpers/ScopeGuard.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/helpers/ScopeGuard.cpp b/src/helpers/ScopeGuard.cpp
deleted file mode 100644
index 319255cd..00000000
--- a/src/helpers/ScopeGuard.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-#include "ScopeGuard.hpp"
-
-CScopeGuard::CScopeGuard(const std::function<void()>& fn_) : fn(fn_) {
- ;
-}
-
-CScopeGuard::~CScopeGuard() {
- if (fn)
- fn();
-}