diff options
author | Kenny Levinsen <kl@kl.wtf> | 2024-03-16 13:25:45 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-03-28 10:45:20 +0100 |
commit | 26a9a6b4792a1b2b00406ae6c20ea88325e7c7aa (patch) | |
tree | 666de62b99acf57e2bbab7ae84da2d5bc0668c5e | |
parent | config/output: Make merge_output_config static (diff) | |
download | sway-26a9a6b4792a1b2b00406ae6c20ea88325e7c7aa.tar.gz sway-26a9a6b4792a1b2b00406ae6c20ea88325e7c7aa.tar.zst sway-26a9a6b4792a1b2b00406ae6c20ea88325e7c7aa.zip |
output/config: Remove unused test_output_config
-rw-r--r-- | include/sway/config.h | 2 | ||||
-rw-r--r-- | sway/config/output.c | 10 |
2 files changed, 0 insertions, 12 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 5a303d9f..40710199 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -693,8 +693,6 @@ bool apply_output_configs(struct matched_output_config *configs, | |||
693 | 693 | ||
694 | void apply_all_output_configs(void); | 694 | void apply_all_output_configs(void); |
695 | 695 | ||
696 | bool test_output_config(struct output_config *oc, struct sway_output *output); | ||
697 | |||
698 | struct output_config *store_output_config(struct output_config *oc); | 696 | struct output_config *store_output_config(struct output_config *oc); |
699 | 697 | ||
700 | struct output_config *find_output_config(struct sway_output *output); | 698 | struct output_config *find_output_config(struct sway_output *output); |
diff --git a/sway/config/output.c b/sway/config/output.c index 72cbf261..3f1c3126 100644 --- a/sway/config/output.c +++ b/sway/config/output.c | |||
@@ -568,16 +568,6 @@ static bool finalize_output_config(struct output_config *oc, struct sway_output | |||
568 | return true; | 568 | return true; |
569 | } | 569 | } |
570 | 570 | ||
571 | bool test_output_config(struct output_config *oc, struct sway_output *output) { | ||
572 | if (output == root->fallback_output) { | ||
573 | return false; | ||
574 | } | ||
575 | |||
576 | struct wlr_output_state pending = {0}; | ||
577 | queue_output_config(oc, output, &pending); | ||
578 | return wlr_output_test_state(output->wlr_output, &pending); | ||
579 | } | ||
580 | |||
581 | static void default_output_config(struct output_config *oc, | 571 | static void default_output_config(struct output_config *oc, |
582 | struct wlr_output *wlr_output) { | 572 | struct wlr_output *wlr_output) { |
583 | oc->enabled = 1; | 573 | oc->enabled = 1; |