Skip to content

Commit

Permalink
internal: nuke wlsignal and related
Browse files Browse the repository at this point in the history
old semi-wrappers for wl_signal, they are no longer used
  • Loading branch information
vaxerski committed Sep 23, 2024
1 parent 34e4a60 commit 8ffe13d
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 128 deletions.
1 change: 0 additions & 1 deletion src/defines.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "includes.hpp"
#include "debug/Log.hpp"
#include "helpers/WLListener.hpp"
#include "helpers/Color.hpp"
#include "macros.hpp"
#include "desktop/DesktopTypes.hpp"
8 changes: 1 addition & 7 deletions src/desktop/Subsurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,7 @@ CSubsurface::CSubsurface(SP<CWLSubsurfaceResource> pSubsurface, CPopup* pOwner)
}

CSubsurface::~CSubsurface() {
hyprListener_newSubsurface.removeCallback();

if (!m_pSubsurface)
return;

hyprListener_commitSubsurface.removeCallback();
hyprListener_destroySubsurface.removeCallback();
;
}

void CSubsurface::initSignals() {
Expand Down
4 changes: 0 additions & 4 deletions src/desktop/Subsurface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ class CSubsurface {
void recheckDamageForSubsurfaces();

private:
DYNLISTENER(destroySubsurface);
DYNLISTENER(commitSubsurface);
DYNLISTENER(newSubsurface);

struct {
CHyprSignalListener destroySubsurface;
CHyprSignalListener commitSubsurface;
Expand Down
1 change: 0 additions & 1 deletion src/devices/IKeyboard.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include "IHID.hpp"
#include "../helpers/WLListener.hpp"
#include "../macros.hpp"
#include "../helpers/math/Math.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/devices/IPointer.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include "IHID.hpp"
#include "../helpers/WLListener.hpp"
#include "../macros.hpp"
#include "../helpers/math/Math.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/devices/ITouch.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include "IHID.hpp"
#include "../helpers/WLListener.hpp"
#include "../macros.hpp"
#include "../helpers/math/Math.hpp"

Expand Down
1 change: 0 additions & 1 deletion src/devices/Tablet.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#include "IHID.hpp"
#include "../helpers/WLListener.hpp"
#include "../macros.hpp"
#include "../helpers/math/Math.hpp"
#include "../helpers/math/Math.hpp"
Expand Down
62 changes: 0 additions & 62 deletions src/helpers/WLListener.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions src/helpers/WLListener.hpp

This file was deleted.

1 change: 0 additions & 1 deletion src/managers/SeatManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <cstdint>
#include <wayland-server-protocol.h>
#include "../helpers/WLListener.hpp"
#include "../macros.hpp"
#include "../helpers/signal/Signal.hpp"
#include "../helpers/math/Math.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/managers/input/InputMethodPopup.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../../helpers/WLListener.hpp"
#include "../../desktop/WLSurface.hpp"
#include "../../macros.hpp"
#include "../../helpers/math/Math.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/managers/input/TextInput.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../../helpers/WLListener.hpp"
#include "../../macros.hpp"
#include "../../helpers/math/Math.hpp"
#include "../../helpers/signal/Signal.hpp"
Expand Down
3 changes: 0 additions & 3 deletions src/protocols/FocusGrab.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ class CFocusGrab {

bool m_bGrabActive = false;

DYNLISTENER(pointerGrabStarted);
DYNLISTENER(keyboardGrabStarted);
DYNLISTENER(touchGrabStarted);
friend class CFocusGrabSurfaceState;
};

Expand Down
2 changes: 0 additions & 2 deletions src/protocols/PresentationTime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class CQueuedPresentationData {
WP<CMonitor> pMonitor;
WP<CWLSurfaceResource> surface;

DYNLISTENER(destroySurface);

friend class CPresentationFeedback;
friend class CPresentationProtocol;
};
Expand Down
1 change: 0 additions & 1 deletion src/render/Renderbuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "../helpers/signal/Signal.hpp"
#include "../helpers/memory/Memory.hpp"
#include "../helpers/WLListener.hpp"
#include "Framebuffer.hpp"
#include <aquamarine/buffer/Buffer.hpp>

Expand Down
1 change: 0 additions & 1 deletion src/xwayland/XSurface.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once

#include "../helpers/WLListener.hpp"
#include "../helpers/signal/Signal.hpp"
#include "../helpers/memory/Memory.hpp"
#include "../helpers/math/Math.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/xwayland/XWM.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "../macros.hpp"
#include "XDataSource.hpp"
#include "../helpers/WLListener.hpp"
#include "../helpers/memory/Memory.hpp"
#include "../helpers/signal/Signal.hpp"

Expand Down

0 comments on commit 8ffe13d

Please sign in to comment.