Remove unused function output_max_scale()

This commit is contained in:
Johan Malm 2025-09-25 19:27:01 +01:00 committed by John Lindgren
parent 0bf2678f9d
commit 139a5f0383
2 changed files with 0 additions and 21 deletions

View file

@ -70,11 +70,4 @@ void handle_output_power_manager_set_mode(struct wl_listener *listener,
void *data);
void output_enable_adaptive_sync(struct output *output, bool enabled);
/**
* output_max_scale() - get maximum scale factor of all usable outputs.
* Used when loading/rendering resources (e.g. icons) that may be
* displayed on any output.
*/
float output_max_scale(struct server *server);
#endif // LABWC_OUTPUT_H

View file

@ -1142,17 +1142,3 @@ output_enable_adaptive_sync(struct output *output, bool enabled)
enabled ? "en" : "dis", output->wlr_output->name);
}
}
float
output_max_scale(struct server *server)
{
/* Never return less than 1, in case outputs are disabled */
float scale = 1;
struct output *output;
wl_list_for_each(output, &server->outputs, link) {
if (output_is_usable(output)) {
scale = MAX(scale, output->wlr_output->scale);
}
}
return scale;
}