aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kenny Levinsen <kl@kl.wtf>2021-02-08 23:05:27 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2021-02-23 19:38:05 +0100
commit1989b18ff281cb75f0e62a20e663767a9e82e55d (patch)
tree5293ec8ba2c00cdcc0bad84c243e94d9c97e78e7
parenttransaction: Note if instructions are server requests (diff)
downloadsway-1989b18ff281cb75f0e62a20e663767a9e82e55d.tar.gz
sway-1989b18ff281cb75f0e62a20e663767a9e82e55d.tar.zst
sway-1989b18ff281cb75f0e62a20e663767a9e82e55d.zip
transaction: Remove unused ready_immediately
-rw-r--r--include/sway/desktop/transaction.h6
-rw-r--r--sway/desktop/transaction.c8
2 files changed, 0 insertions, 14 deletions
diff --git a/include/sway/desktop/transaction.h b/include/sway/desktop/transaction.h
index af28169e..7dd58ba8 100644
--- a/include/sway/desktop/transaction.h
+++ b/include/sway/desktop/transaction.h
@@ -51,10 +51,4 @@ void transaction_notify_view_ready_by_serial(struct sway_view *view,
51void transaction_notify_view_ready_by_geometry(struct sway_view *view, 51void transaction_notify_view_ready_by_geometry(struct sway_view *view,
52 double x, double y, int width, int height); 52 double x, double y, int width, int height);
53 53
54/**
55 * Unconditionally notify the transaction system that a view is ready for the
56 * new layout.
57 */
58void transaction_notify_view_ready_immediately(struct sway_view *view);
59
60#endif 54#endif
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c
index 21915207..b1f3fb32 100644
--- a/sway/desktop/transaction.c
+++ b/sway/desktop/transaction.c
@@ -521,14 +521,6 @@ void transaction_notify_view_ready_by_geometry(struct sway_view *view,
521 } 521 }
522} 522}
523 523
524void transaction_notify_view_ready_immediately(struct sway_view *view) {
525 struct sway_transaction_instruction *instruction =
526 view->container->node.instruction;
527 if (instruction != NULL) {
528 set_instruction_ready(instruction);
529 }
530}
531
532static void _transaction_commit_dirty(bool server_request) { 524static void _transaction_commit_dirty(bool server_request) {
533 if (!server.dirty_nodes->length) { 525 if (!server.dirty_nodes->length) {
534 return; 526 return;