mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 08:51:27 +00:00
output/config: Remove unused test_output_config
This commit is contained in:
parent
c3fca26d30
commit
26a9a6b479
|
@ -693,8 +693,6 @@ bool apply_output_configs(struct matched_output_config *configs,
|
||||||
|
|
||||||
void apply_all_output_configs(void);
|
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 *store_output_config(struct output_config *oc);
|
||||||
|
|
||||||
struct output_config *find_output_config(struct sway_output *output);
|
struct output_config *find_output_config(struct sway_output *output);
|
||||||
|
|
|
@ -568,16 +568,6 @@ static bool finalize_output_config(struct output_config *oc, struct sway_output
|
||||||
return true;
|
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,
|
static void default_output_config(struct output_config *oc,
|
||||||
struct wlr_output *wlr_output) {
|
struct wlr_output *wlr_output) {
|
||||||
oc->enabled = 1;
|
oc->enabled = 1;
|
||||||
|
|
Loading…
Reference in a new issue