Skip to content

Commit

Permalink
output/config: Remove unused test_output_config
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylevinsen authored and emersion committed Mar 28, 2024
1 parent c3fca26 commit 26a9a6b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions include/sway/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,6 @@ bool apply_output_configs(struct matched_output_config *configs,

void apply_all_output_configs(void);

bool test_output_config(struct output_config *oc, struct sway_output *output);

struct output_config *store_output_config(struct output_config *oc);

struct output_config *find_output_config(struct sway_output *output);
Expand Down
10 changes: 0 additions & 10 deletions sway/config/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,6 @@ static bool finalize_output_config(struct output_config *oc, struct sway_output
return true;
}

bool test_output_config(struct output_config *oc, struct sway_output *output) {
if (output == root->fallback_output) {
return false;
}

struct wlr_output_state pending = {0};
queue_output_config(oc, output, &pending);
return wlr_output_test_state(output->wlr_output, &pending);
}

static void default_output_config(struct output_config *oc,
struct wlr_output *wlr_output) {
oc->enabled = 1;
Expand Down

0 comments on commit 26a9a6b

Please sign in to comment.