]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Remove unused function output_max_scale()
authorJohan Malm <jgm323@gmail.com>
Thu, 25 Sep 2025 18:27:01 +0000 (19:27 +0100)
committerJohn Lindgren <john@jlindgren.net>
Fri, 26 Sep 2025 14:41:21 +0000 (10:41 -0400)
include/output.h
src/output.c

index 413b43c58a717adf04d6e49f31f26359a7186928..ceccaf9f678e722090dac20849317edc6313dd8a 100644 (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
index 22e9fc4ef164af8e971bfec9b424a350086de159..8345c653917f2a9d9628dd964faae80b077d8206 100644 (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;
-}