summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-20 20:06:24 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-20 20:06:24 +0200
commitcc3f0ff9e7906bff60a041fc5556e7c5cbd71df5 (patch)
tree7c95ae20b5155f08e56f7cc7ceb6fb25b4f2a182 /src/helpers/MiscFunctions.cpp
parent7af193d921dcc52e36b91a67a3433abdd5a994f7 (diff)
update wlroots dep
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
-rw-r--r--src/helpers/MiscFunctions.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp
index b27489ca..405a53d8 100644
--- a/src/helpers/MiscFunctions.cpp
+++ b/src/helpers/MiscFunctions.cpp
@@ -75,35 +75,6 @@ void handleNoop(struct wl_listener *listener, void *data) {
// Do nothing
}
-void wlr_signal_emit_safe(struct wl_signal *signal, void *data) {
- struct wl_listener cursor;
- struct wl_listener end;
-
- /* Add two special markers: one cursor and one end marker. This way, we know
- * that we've already called listeners on the left of the cursor and that we
- * don't want to call listeners on the right of the end marker. The 'it'
- * function can remove any element it wants from the list without troubles.
- * wl_list_for_each_safe tries to be safe but it fails: it works fine
- * if the current item is removed, but not if the next one is. */
- wl_list_insert(&signal->listener_list, &cursor.link);
- cursor.notify = handleNoop;
- wl_list_insert(signal->listener_list.prev, &end.link);
- end.notify = handleNoop;
-
- while (cursor.link.next != &end.link) {
- struct wl_list *pos = cursor.link.next;
- struct wl_listener *l = wl_container_of(pos, l, link);
-
- wl_list_remove(&cursor.link);
- wl_list_insert(pos, &cursor.link);
-
- l->notify(l, data);
- }
-
- wl_list_remove(&cursor.link);
- wl_list_remove(&end.link);
-}
-
std::string getFormat(const char *fmt, ...) {
char* outputStr = nullptr;