Skip to content

Commit

Permalink
internal: move to hyprutils' scopeguard
Browse files Browse the repository at this point in the history
bumps hyprutils dep to 0.2.2
  • Loading branch information
vaxerski committed Sep 20, 2024
1 parent db0b764 commit 9232bc2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pkg_check_modules(
gio-2.0
hyprlang>=0.3.2
hyprcursor>=0.1.7
hyprutils>=0.2.1)
hyprutils>=0.2.2)

find_package(hyprwayland-scanner 0.3.10 REQUIRED)

Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/helpers/Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "MiscFunctions.hpp"
#include "math/Math.hpp"
#include "sync/SyncReleaser.hpp"
#include "ScopeGuard.hpp"
#include "../Compositor.hpp"
#include "../config/ConfigValue.hpp"
#include "../protocols/GammaControl.hpp"
Expand All @@ -17,7 +16,9 @@
#include "sync/SyncTimeline.hpp"
#include <aquamarine/output/Output.hpp>
#include <hyprutils/string/String.hpp>
#include <hyprutils/utils/ScopeGuard.hpp>
using namespace Hyprutils::String;
using namespace Hyprutils::Utils;

int ratHandler(void* data) {
g_pHyprRenderer->renderMonitor((CMonitor*)data);
Expand Down
10 changes: 0 additions & 10 deletions src/helpers/ScopeGuard.cpp

This file was deleted.

13 changes: 0 additions & 13 deletions src/helpers/ScopeGuard.hpp

This file was deleted.

4 changes: 3 additions & 1 deletion src/render/Renderer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "Renderer.hpp"
#include "../Compositor.hpp"
#include "../helpers/math/Math.hpp"
#include "../helpers/ScopeGuard.hpp"
#include "../helpers/sync/SyncReleaser.hpp"
#include <algorithm>
#include <aquamarine/output/Output.hpp>
Expand All @@ -23,6 +22,9 @@
#include "../helpers/sync/SyncTimeline.hpp"
#include "debug/Log.hpp"

#include <hyprutils/utils/ScopeGuard.hpp>
using namespace Hyprutils::Utils;

extern "C" {
#include <xf86drm.h>
}
Expand Down

0 comments on commit 9232bc2

Please sign in to comment.