From: Johan Malm Date: Thu, 25 Sep 2025 18:27:01 +0000 (+0100) Subject: Remove unused function output_max_scale() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=139a5f0383b9e10d93d6d25c85c5abe7b4670877;p=proto%2Flabwc.git Remove unused function output_max_scale() --- diff --git a/include/output.h b/include/output.h index 413b43c5..ceccaf9f 100644 --- a/include/output.h +++ b/include/output.h @@ -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 diff --git a/src/output.c b/src/output.c index 22e9fc4e..8345c653 100644 --- a/src/output.c +++ b/src/output.c @@ -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; -}